All things related to making Service Resolution easy and encapsulated throughout the LightestNight ecosystem.
Allows a single abstraction across Service Resolution to keep dependencies to a minimum
-
Asp.Net Standard/Core Dependency Injection
- Use the provided
services.AddServiceResolution()
method
- Use the provided
-
Other Containers
- Map
ServiceFactory
to your container's activator. For example, in StructureMap it would look something like:
cfg.For<ServiceFactory>().Use<ServiceFactory>(ctx => ctx.GetInstance);
- Map