Skip to content

Commit

Permalink
Update Bulk Deposit to IEnumerable instead of Array (#2310)
Browse files Browse the repository at this point in the history
  • Loading branch information
preardon authored Oct 10, 2022
1 parent e5e5b3b commit 54daf03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Paramore.Brighter/CommandProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,10 @@ public Guid DepositPost<T>(T request) where T : class, IRequest
/// database, that you want to signal via the request to downstream consumers
/// Pass deposited Guid to <see cref="ClearOutbox"/>
/// </summary>
/// <param name="request">The request to save to the outbox</param>
/// <param name="request">The requests to save to the outbox</param>
/// <typeparam name="T">The type of the request</typeparam>
/// <returns>The Id of the Message that has been deposited.</returns>
public Guid[] DepositPost<T>(T[] request) where T : class, IRequest
public Guid[] DepositPost<T>(IEnumerable<T> request) where T : class, IRequest
{
return DepositPost(request, _boxTransactionConnectionProvider);
}
Expand Down Expand Up @@ -621,7 +621,7 @@ public async Task<Guid> DepositPostAsync<T>(T request, bool continueOnCapturedCo
/// <param name="cancellationToken">The Cancellation Token.</param>
/// <typeparam name="T">The type of the request</typeparam>
/// <returns></returns>
public Task<Guid[]> DepositPostAsync<T>(T[] requests, bool continueOnCapturedContext = false,
public Task<Guid[]> DepositPostAsync<T>(IEnumerable<T> requests, bool continueOnCapturedContext = false,
CancellationToken cancellationToken = default(CancellationToken)) where T : class, IRequest
{
return DepositPostAsync(requests, _boxTransactionConnectionProvider, continueOnCapturedContext, cancellationToken);
Expand Down

0 comments on commit 54daf03

Please sign in to comment.