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
This service provider is independent from the service provider built by the host, which means the worker service is getting its IHostApplicationLifetime from the hosts service provider, while the commands are getting theirs from the service provider your TypeRegistrar built.
I solved this by implementing a ITypeRegistrar and ITypeResolver which have their own registry of type factories, but then fall back to an IServiceProvider which is sourced from the compiled host.
AsyncCommnad not Cancelable
appLifetime.ApplicationStopping will never stop even if called by an other background service or strg+c. (return 99 in my example)
I didn't found a solution right now, do you have some suggestion ?
The text was updated successfully, but these errors were encountered: