Пример #1
0
 public async Task AddAsync(IIntegrationMessage integrationMessage, CancellationToken cancellationToken = default)
 {
     var outboxMessage = new OutboxMessage(integrationMessage);
     await _dbContext.AddAsync(outboxMessage, cancellationToken);
 }
Пример #2
0
 public async Task AddAsync(User user, CancellationToken cancellationToken)
 {
     await _efDbContext.AddAsync(user, cancellationToken);
 }