public static Task CommitAsync(this IMessageBatch batch, CancellationToken cancellationToken) { return(batch.CommitAsync(batch.Last(), cancellationToken)); }
public static void MarkSuccessful(this IMessageBatch batch) { batch.MarkSuccessful(batch.Last()); }