when is IDependency created per request and when not?

Topics: Writing modules
Mar 14, 2011 at 9: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.)

Coordinator
Mar 14, 2011 at 6:14 PM

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