mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-08 23:41:13 +08:00
feat: add modular monolith source
This commit is contained in:
parent
27d25aa47d
commit
d278e36fd2
@ -70,7 +70,7 @@ where TResponse : notnull
|
||||
|
||||
using var scope = new TransactionScope(
|
||||
TransactionScopeOption.Required,
|
||||
new TransactionOptions {IsolationLevel = IsolationLevel.ReadCommitted},
|
||||
new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted },
|
||||
TransactionScopeAsyncFlowOption.Enabled);
|
||||
|
||||
await _eventDispatcher.SendAsync(
|
||||
|
||||
@ -49,12 +49,12 @@ public class IdentityDataSeeder : IDataSeeder
|
||||
{
|
||||
if (await _roleManager.RoleExistsAsync(Constants.Role.Admin) == false)
|
||||
{
|
||||
await _roleManager.CreateAsync(new Role {Name = Constants.Role.Admin});
|
||||
await _roleManager.CreateAsync(new Role { Name = Constants.Role.Admin });
|
||||
}
|
||||
|
||||
if (await _roleManager.RoleExistsAsync(Constants.Role.User) == false)
|
||||
{
|
||||
await _roleManager.CreateAsync(new Role {Name = Constants.Role.User});
|
||||
await _roleManager.CreateAsync(new Role { Name = Constants.Role.User });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ where TResponse : notnull
|
||||
|
||||
using var scope = new TransactionScope(
|
||||
TransactionScopeOption.Required,
|
||||
new TransactionOptions {IsolationLevel = IsolationLevel.ReadCommitted},
|
||||
new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted },
|
||||
TransactionScopeAsyncFlowOption.Enabled);
|
||||
|
||||
await _eventDispatcher.SendAsync(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user