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
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
This is because internally, the default implementation of IApplicationLifetime takes an IEnumerable<IApplicationLifetimeEvents>. The reason you might want to inject IApplicationLifetime is because you might want to call StopApplication at some point. Either way, the error is impossible to figure out without understanding how it's implemented.
The text was updated successfully, but these errors were encountered:
- Renamed the type to IHostedService and added Start and Stop.
- Split up the IHostedService execution and IApplicationLifetime to avoid
circular references
- Trigger IHostedService.Start after starting the server
- Trigger IHostedService.Stop before disposing the service provider
#895#894
- Renamed the type to IHostedService and added Start and Stop.
- Split up the IHostedService execution and IApplicationLifetime to avoid
circular references
- Trigger IHostedService.Start after starting the server
- Trigger IHostedService.Stop before disposing the service provider
#895#894
The following class will cause a circular dependency error in the DI system:
This is because internally, the default implementation of
IApplicationLifetime
takes anIEnumerable<IApplicationLifetimeEvents>
. The reason you might want to injectIApplicationLifetime
is because you might want to call StopApplication at some point. Either way, the error is impossible to figure out without understanding how it's implemented.The text was updated successfully, but these errors were encountered: