-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement asynchronous background services #61
Conversation
…* prefix. These methods do not handle events, they do the actual work.
- reduce the number of nested try blocks in RunAsyncCore - add a synchronous Start method, semantically consistent with Stop - use a private method to modify _state
…already requested
… always returns Disposed.
…happy. RunAsyncCore was still flagged as "Complex method".
It took me way longer than I anticipated. A lot of time went into understanding the inner working of On a positive note, some bugs that still remained in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Proposed changes
AsyncService
class to simplify the development and use of long-running background tasks.Louis.Hosting
package with anAsyncHostedService
class, derived fromAsyncService
, that implementsIHostedService
and can thus be seamlessly integrated with anyIHostBuilder
-based application.Checklist of related issues / discussions
Fixes #56
Types of changes
This pull request introduces the following types of changes:
docs
directory) update.gitattributes
,.gitignore
)Breaking changes
This pull request introduces breaking changes:
Checklist
docs
directory) only: