From 56ffefb806c8d9089b4099ad59ceca3736104e17 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 30 Sep 2022 13:04:55 +0000 Subject: [PATCH 1/2] Update dependency MediatR.Extensions.Microsoft.DependencyInjection to v11 --- src/SimCube.Spartan/SimCube.Spartan.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SimCube.Spartan/SimCube.Spartan.csproj b/src/SimCube.Spartan/SimCube.Spartan.csproj index 1838a10..c67fc76 100644 --- a/src/SimCube.Spartan/SimCube.Spartan.csproj +++ b/src/SimCube.Spartan/SimCube.Spartan.csproj @@ -16,7 +16,7 @@ - + From 41f923972d697fbeca890e08dc0de097795c85a5 Mon Sep 17 00:00:00 2001 From: Prom3theu5 Date: Sun, 2 Oct 2022 02:44:55 +0100 Subject: [PATCH 2/2] Update Mediatr --- src/SimCube.Spartan/SimCube.Spartan.xml | 4 ++-- src/SimCube.Spartan/Validation/ValidationBehavior.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SimCube.Spartan/SimCube.Spartan.xml b/src/SimCube.Spartan/SimCube.Spartan.xml index cfa0650..8cf5e3d 100644 --- a/src/SimCube.Spartan/SimCube.Spartan.xml +++ b/src/SimCube.Spartan/SimCube.Spartan.xml @@ -293,13 +293,13 @@ The validators to use to validate against. - + Performs the validation. The request to validate. - The cancellation token. The next middleware in the request pipeline. + The cancellation token. The result of the validation, or the result of the next result in the pipeline if validation is successful. diff --git a/src/SimCube.Spartan/Validation/ValidationBehavior.cs b/src/SimCube.Spartan/Validation/ValidationBehavior.cs index a3a7477..9a10053 100644 --- a/src/SimCube.Spartan/Validation/ValidationBehavior.cs +++ b/src/SimCube.Spartan/Validation/ValidationBehavior.cs @@ -22,10 +22,10 @@ public class ValidationBehavior : IPipelineBehavior /// The request to validate. - /// The cancellation token. /// The next middleware in the request pipeline. + /// The cancellation token. /// The result of the validation, or the result of the next result in the pipeline if validation is successful. - public async Task Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate next) + public async Task Handle(TRequest request, RequestHandlerDelegate next, CancellationToken cancellationToken) { var context = new ValidationContext(request);