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(distributed): Add Readme #95

Merged
merged 11 commits into from
Jun 24, 2022
Merged

feat(distributed): Add Readme #95

merged 11 commits into from
Jun 24, 2022

Conversation

zhenlei520
Copy link
Contributor

No description provided.

@zhenlei520 zhenlei520 added the documentation Improvements or additions to documentation label Jun 23, 2022
@zhenlei520 zhenlei520 force-pushed the feature/distributedLocking branch from 3c49466 to b2fb306 Compare June 23, 2022 08:41
# Conflicts:
#	src/BuildingBlocks/MASA.BuildingBlocks
@zhenlei520 zhenlei520 requested a review from doddgu June 24, 2022 02:09
2. Use distributed locks

``` C#
IDistributedLock distributedLock;//从DI获取`IDistributedLock`
Copy link
Contributor

Choose a reason for hiding this comment

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

从DI获取?

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


``` C#
IDistributedLock distributedLock;//从DI获取`IDistributedLock`
using (var lockObj = distributedLock.TryGet("Replace You Lock Name"))
Copy link
Contributor

Choose a reason for hiding this comment

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

You -> Your

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.Azure
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.FileSystem
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.MySql
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.PostgreSql
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.Redis
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.SqlServer
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.WaitHandles
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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

Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.SqlServer
```

1. 修改类`Program`
Copy link
Contributor

Choose a reason for hiding this comment

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

English?

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 June 24, 2022 06:23
``` C#
builder.Services.AddDistributedLock(medallionBuilder =>
{
medallionBuilder.UseAzure("replace you connectionString", "replace you blobContainerName");
Copy link
Contributor

Choose a reason for hiding this comment

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

you -> your

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 June 24, 2022 06:28
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 76b1ec4 into main Jun 24, 2022
@doddgu doddgu deleted the feature/distributedLocking branch June 24, 2022 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants