Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 358 Bytes

DependencyInjection.md

File metadata and controls

14 lines (10 loc) · 358 Bytes

Lombiq Helpful Libraries - Common Libraries - Dependency Injection

Lazy injection support

Using the AddLazyInjectionSupport() extension will allow you to inject lazy dependencies like Lazy<IMyService> myService.

Usage:

public override void ConfigureServices(IServiceCollection services)
{
    services.AddLazyInjectionSupport();
}