public async Task CopyTo(Stream target, CancellationToken cancellation = default) { using (var connection = await GetConnection().ConfigureAwait(false)) { await persister.CopyTo(messageId, "default", connection, null, target, cancellation).ConfigureAwait(false); } }
public Task CopyTo(Stream target, CancellationToken cancellation = default) { return(persister.CopyTo(messageId, "default", target, cancellation)); }