Skip to content
Permalink
Browse files

Merge pull request #72 from jbogard/update-references

Updating references to 7.0
  • Loading branch information...
jbogard committed Apr 30, 2019
2 parents 073e586 + 864bf87 commit ab26360b20ad813f9c3876179aba650ea2fb776c
@@ -21,7 +21,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.0.0" />
<PackageReference Include="MediatR" Version="6.0.0" />
<PackageReference Include="MediatR" Version="7.0.0" />
</ItemGroup>

</Project>
@@ -1,4 +1,5 @@
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediatR.Pipeline;

@@ -13,7 +14,7 @@ public GenericRequestPostProcessor(TextWriter writer)
_writer = writer;
}

public Task Process(TRequest request, TResponse response)
public Task Process(TRequest request, TResponse response, CancellationToken cancellationToken)
{
return _writer.WriteLineAsync("- All Done");
}
@@ -16,12 +16,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="Shouldly" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.0" />
<PackageReference Include="structuremap" Version="4.6.1" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Shouldly" Version="3.0.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
<PackageReference Include="structuremap" Version="4.7.1" />
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>

</Project>
@@ -179,7 +179,7 @@ public FirstPostProcessor(Logger output)
{
_output = output;
}
public Task Process(TRequest request, TResponse response)
public Task Process(TRequest request, TResponse response, CancellationToken cancellationToken)
{
_output.Messages.Add("First post processor");
return Task.FromResult(0);
@@ -194,7 +194,7 @@ public FirstConcretePostProcessor(Logger output)
{
_output = output;
}
public Task Process(Ping request, Pong response)
public Task Process(Ping request, Pong response, CancellationToken cancellationToken)
{
_output.Messages.Add("First concrete post processor");
return Task.FromResult(0);
@@ -209,7 +209,7 @@ public NextPostProcessor(Logger output)
{
_output = output;
}
public Task Process(TRequest request, TResponse response)
public Task Process(TRequest request, TResponse response, CancellationToken cancellationToken)
{
_output.Messages.Add("Next post processor");
return Task.FromResult(0);
@@ -224,7 +224,7 @@ public NextConcretePostProcessor(Logger output)
{
_output = output;
}
public Task Process(Ping request, Pong response)
public Task Process(Ping request, Pong response, CancellationToken cancellationToken)
{
_output.Messages.Add("Next concrete post processor");
return Task.FromResult(0);

0 comments on commit ab26360

Please sign in to comment.
You can’t perform that action at this time.