Using the AddLazyInjectionSupport()
extension will allow you to inject lazy dependencies like Lazy<IMyService> myService
.
Usage:
public override void ConfigureServices(IServiceCollection services)
{
services.AddLazyInjectionSupport();
}
Using the AddLazyInjectionSupport()
extension will allow you to inject lazy dependencies like Lazy<IMyService> myService
.
Usage:
public override void ConfigureServices(IServiceCollection services)
{
services.AddLazyInjectionSupport();
}