Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 577 Bytes

File metadata and controls

14 lines (10 loc) · 577 Bytes

Lightest Night

Service Resolution

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

How To Use

  • Asp.Net Standard/Core Dependency Injection

    • Use the provided services.AddServiceResolution() method
  • 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);