You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicIServiceProviderConfigureServices(IServiceCollectionservices){varprovider=newMicrosoftDependencyInjectionDIProvider{Services=services};DIContainer.Current=provider;// Your registrations here (both via services or DIContainer.Current.Register)returnprovider.ServiceProvider;}
Alternatively:
publicvoidConfigureServices(IServiceCollectionservices){DIContainer.Current=newMicrosoftDependencyInjectionDIProvider{Services=services};// Your registrations here (both via services or DIContainer.Current.Register)}