-
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(distributed): Add Readme #95
Conversation
3c49466
to
b2fb306
Compare
# Conflicts: # src/BuildingBlocks/MASA.BuildingBlocks
2. Use distributed locks | ||
|
||
``` C# | ||
IDistributedLock distributedLock;//从DI获取`IDistributedLock` |
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.
从DI获取?
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
|
||
``` C# | ||
IDistributedLock distributedLock;//从DI获取`IDistributedLock` | ||
using (var lockObj = distributedLock.TryGet("Replace You Lock Name")) |
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.
You -> Your
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.Azure | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.FileSystem | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.MySql | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.PostgreSql | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.Redis | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.SqlServer | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.WaitHandles | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
Install-Package Masa.Contrib.Data.DistributedLocking.Medallion.SqlServer | ||
``` | ||
|
||
1. 修改类`Program` |
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.
English?
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
``` C# | ||
builder.Services.AddDistributedLock(medallionBuilder => | ||
{ | ||
medallionBuilder.UseAzure("replace you connectionString", "replace you blobContainerName"); |
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.
you -> your
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
No description provided.