diff --git a/samples/MediatR.Examples/GenericPipelineBehavior.cs b/samples/MediatR.Examples/GenericPipelineBehavior.cs index 2417ec30..195d8adc 100644 --- a/samples/MediatR.Examples/GenericPipelineBehavior.cs +++ b/samples/MediatR.Examples/GenericPipelineBehavior.cs @@ -14,7 +14,7 @@ public GenericPipelineBehavior(TextWriter writer) _writer = writer; } - public async Task Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate next) + public async Task Handle(TRequest request, RequestHandlerDelegate next, CancellationToken cancellationToken) { await _writer.WriteLineAsync("-- Handling Request"); var response = await next(); diff --git a/samples/MediatR.Examples/Streams/GenericStreamPipelineBehavior.cs b/samples/MediatR.Examples/Streams/GenericStreamPipelineBehavior.cs index 95cf4662..8ab1384b 100644 --- a/samples/MediatR.Examples/Streams/GenericStreamPipelineBehavior.cs +++ b/samples/MediatR.Examples/Streams/GenericStreamPipelineBehavior.cs @@ -16,7 +16,7 @@ public GenericStreamPipelineBehavior(TextWriter writer) _writer = writer; } - public async IAsyncEnumerable Handle(TRequest request, [EnumeratorCancellation]CancellationToken cancellationToken, StreamHandlerDelegate next) + public async IAsyncEnumerable Handle(TRequest request, StreamHandlerDelegate next, [EnumeratorCancellation]CancellationToken cancellationToken) { await _writer.WriteLineAsync("-- Handling StreamRequest"); await foreach (var response in next().WithCancellation(cancellationToken).ConfigureAwait(false))