Skip to content

Commit

Permalink
Fixing build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogard committed Sep 30, 2022
1 parent 89c7b6d commit 390da5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/MediatR.Examples/GenericPipelineBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public GenericPipelineBehavior(TextWriter writer)
_writer = writer;
}

public async Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
{
await _writer.WriteLineAsync("-- Handling Request");
var response = await next();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public GenericStreamPipelineBehavior(TextWriter writer)
_writer = writer;
}

public async IAsyncEnumerable<TResponse> Handle(TRequest request, [EnumeratorCancellation]CancellationToken cancellationToken, StreamHandlerDelegate<TResponse> next)
public async IAsyncEnumerable<TResponse> Handle(TRequest request, StreamHandlerDelegate<TResponse> next, [EnumeratorCancellation]CancellationToken cancellationToken)
{
await _writer.WriteLineAsync("-- Handling StreamRequest");
await foreach (var response in next().WithCancellation(cancellationToken).ConfigureAwait(false))
Expand Down

0 comments on commit 390da5d

Please sign in to comment.