public async Task AddAsync(IIntegrationMessage integrationMessage, CancellationToken cancellationToken = default) { var outboxMessage = new OutboxMessage(integrationMessage); await _dbContext.AddAsync(outboxMessage, cancellationToken); }
public async Task AddAsync(User user, CancellationToken cancellationToken) { await _efDbContext.AddAsync(user, cancellationToken); }