-
Notifications
You must be signed in to change notification settings - Fork 115
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
feat(UoW): add IUnitOfWorkAccessor and IUnitOfWorkManager support CreateDbContextAsync #27
Conversation
…, IUnitOfWork Add IServiceProvider refactor(IntegrationEvents.Dapr): Refactoring background tasks
…ateDbContextAsync
|
||
public UnitOfWorkManager(IServiceProvider serviceProvider) => _serviceProvider = serviceProvider; | ||
|
||
public Task<IUnitOfWork> CreateDbContextAsync() |
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.
CreateDbContext has no IO opeartion, why need async?
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.
No need for async here, it will be removed in a later commit
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.
processed
@@ -14,11 +16,9 @@ public DeleteLocalQueueExpiresProcessor(IOptions<DispatcherOptions> options) | |||
/// </summary> | |||
/// <param name="stoppingToken"></param> | |||
/// <returns></returns> | |||
public override Task ExecuteAsync(CancellationToken stoppingToken) | |||
protected override Task ExecutingAsync(CancellationToken stoppingToken) |
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.
Why you need async? Support MQ in the future?
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.
No need for async here, it will be removed in a later commit
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.
processed
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
Docs
Features
Refactor
Test