Skip to content
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

Merged
merged 11 commits into from
Mar 30, 2022

Conversation

zhenlei520
Copy link
Contributor

@zhenlei520 zhenlei520 commented Mar 29, 2022

Docs

Features

Refactor

Test

@zhenlei520 zhenlei520 added the enhancement New feature or request label Mar 29, 2022
@zhenlei520 zhenlei520 requested a review from doddgu March 29, 2022 14:43

public UnitOfWorkManager(IServiceProvider serviceProvider) => _serviceProvider = serviceProvider;

public Task<IUnitOfWork> CreateDbContextAsync()
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processed

@zhenlei520 zhenlei520 requested a review from doddgu March 30, 2022 04:00
Copy link
Contributor

@doddgu doddgu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@doddgu doddgu merged commit 778360e into main Mar 30, 2022
@zhenlei520 zhenlei520 deleted the feature/uow branch March 30, 2022 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants