feat: add modular monolith source

This commit is contained in:
Meysam Hadeli 2025-04-06 17:56:12 +03:30
parent 27d25aa47d
commit d278e36fd2
5 changed files with 11 additions and 11 deletions

View File

@ -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(

View File

@ -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 });
}
}
}

View File

@ -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(