From 390da5df8fceaacb0687ec81b8e6306895ce80dc Mon Sep 17 00:00:00 2001 From: Jimmy Bogard Date: Fri, 30 Sep 2022 10:59:24 +0200 Subject: [PATCH] Fixing build errors --- samples/MediatR.Examples/GenericPipelineBehavior.cs | 2 +- .../MediatR.Examples/Streams/GenericStreamPipelineBehavior.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))