/// <returns>An asynchronous task context.</returns> /// <inheritdoc cref="IMailClient.BulkSendAsync(IMessageBuilder, IDataReader, IEnumerable{IMessageMutator}, IFormatProvider, CancellationToken)"/> public static Task BulkSendAllAsync(this IMailClient client, IMessageBuilder messageBuilder, IDataReader reader, IEnumerable <IMessageMutator>?messageMutators = null, IFormatProvider?formatProvider = null, CancellationToken cancellationToken = default) { _ = client ?? throw new ArgumentNullException(nameof(client)); _ = messageBuilder ?? throw new ArgumentNullException(nameof(messageBuilder)); _ = reader ?? throw new ArgumentNullException(nameof(reader)); return(client.BulkSendAsync(messageBuilder, reader, messageMutators, formatProvider, cancellationToken).ConsumeAsync()); }