This project is read-only.

when is IDependency created per request and when not?

Topics: Writing modules
Mar 14, 2011 at 10:24 AM

First: I'm aware of ISingletonDependency.

Concrete sample: IShapetableProvider which inherits directly from IDependency. Its constructor is only called once per AppDomain lifetime and so I could not access my real per-request-IDependency services data.

(I'm using IWorkContextAccessor.GetContext().Resolve<T>() now -- hope it's the right way doing so.)

Mar 14, 2011 at 7:14 PM

Right, but it's only injected from DefaultShapeTableManager, which is a singleton.