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 @@ - + 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);