Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Updating references
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogard committed Sep 30, 2022
1 parent 62f3ba0 commit 5ef34d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageReference Include="MediatR" Version="10.0.1" />
<PackageReference Include="MediatR" Version="11.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="All" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TestApp/GenericPipelineBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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 @@ -17,7 +17,7 @@ public class ConstructorTestBehavior<TRequest, TResponse> : IPipelineBehavior<TR

public ConstructorTestBehavior(Logger output) => _output = output;

public async Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
{
_output.Messages.Add("ConstructorTestBehavior before");
var response = await next();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public OuterBehavior(Logger output)
_output = output;
}

public async Task<Pong> Handle(Ping request, CancellationToken cancellationToken, RequestHandlerDelegate<Pong> next)
public async Task<Pong> Handle(Ping request, RequestHandlerDelegate<Pong> next, CancellationToken cancellationToken)
{
_output.Messages.Add("Outer before");
var response = await next();
Expand All @@ -42,7 +42,7 @@ public InnerBehavior(Logger output)
_output = output;
}

public async Task<Pong> Handle(Ping request, CancellationToken cancellationToken, RequestHandlerDelegate<Pong> next)
public async Task<Pong> Handle(Ping request, RequestHandlerDelegate<Pong> next, CancellationToken cancellationToken)
{
_output.Messages.Add("Inner before");
var response = await next();
Expand All @@ -62,7 +62,7 @@ public InnerBehavior(Logger output)
_output = output;
}

public async Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
{
_output.Messages.Add("Inner generic before");
var response = await next();
Expand All @@ -82,7 +82,7 @@ public OuterBehavior(Logger output)
_output = output;
}

public async Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
{
_output.Messages.Add("Outer generic before");
var response = await next();
Expand All @@ -103,7 +103,7 @@ public ConstrainedBehavior(Logger output)
_output = output;
}

public async Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
{
_output.Messages.Add("Constrained before");
var response = await next();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public OuterBehavior(Logger output)
_output = output;
}

public async IAsyncEnumerable<Pong> Handle(StreamPing request, [EnumeratorCancellation] CancellationToken cancellationToken, StreamHandlerDelegate<Pong> next)
public async IAsyncEnumerable<Pong> Handle(StreamPing request, StreamHandlerDelegate<Pong> next, [EnumeratorCancellation] CancellationToken cancellationToken)
{
_output.Messages.Add("Outer before");
await foreach (var response in next().WithCancellation(cancellationToken))
Expand All @@ -44,7 +44,7 @@ public InnerBehavior(Logger output)
_output = output;
}

public async IAsyncEnumerable<Pong> Handle(StreamPing request, [EnumeratorCancellation] CancellationToken cancellationToken, StreamHandlerDelegate<Pong> next)
public async IAsyncEnumerable<Pong> Handle(StreamPing request, StreamHandlerDelegate<Pong> next, [EnumeratorCancellation] CancellationToken cancellationToken)
{
_output.Messages.Add("Inner before");
await foreach (var response in next().WithCancellation(cancellationToken))
Expand Down

0 comments on commit 5ef34d0

Please sign in to comment.