public async Task WriteAsync(ZipArchive archive, EditorContext context, CancellationToken cancellationToken) { if (archive == null) { throw new ArgumentNullException(nameof(archive)); } if (context == null) { throw new ArgumentNullException(nameof(context)); } using (await context.Database.BeginTransactionAsync(IsolationLevel.ReadCommitted, cancellationToken)) { await _writer.WriteAsync(archive, context, cancellationToken); } }
public Task WriteAsync(ZipArchive archive, BackOfficeContext context, CancellationToken cancellationToken) { return(_writer.WriteAsync(archive, context, cancellationToken)); }