Closed GoogleCodeExporter closed 8 years ago
In Web API the global dependency resolver is used to access global instances.
Per-request services come from a dependency scope that Web API creates to
handle the request. I'm not sure that there is any way to access the current
dependency scope - this might be a question for the Web API folks.
Autofac has features that can be used to avoid having to use the Service
Locator pattern like this - feel free to shoot an email describing your
scenario to the mailing list and we'll see if we can help out.
Original comment by nicholas...@gmail.com
on 21 Jun 2012 at 4:14
Original issue reported on code.google.com by
johan.no...@squeed.com
on 20 Jun 2012 at 7:22