Browse Source

Update ValidatorBehavior.cs

pull/1892/head
Onurkan Bakırcı 2 years ago
committed by GitHub
parent
commit
f45c4cb075
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Services/Ordering/Ordering.API/Application/Behaviors/ValidatorBehavior.cs

+ 2
- 2
src/Services/Ordering/Ordering.API/Application/Behaviors/ValidatorBehavior.cs View File

@ -1,6 +1,6 @@
namespace Microsoft.eShopOnContainers.Services.Ordering.API.Application.Behaviors; namespace Microsoft.eShopOnContainers.Services.Ordering.API.Application.Behaviors;
public class ValidatorBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> : where TRequest : IRequest<TResponse>
public class ValidatorBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> where TRequest : IRequest<TResponse>
{ {
private readonly ILogger<ValidatorBehavior<TRequest, TResponse>> _logger; private readonly ILogger<ValidatorBehavior<TRequest, TResponse>> _logger;
private readonly IEnumerable<IValidator<TRequest>> _validators; private readonly IEnumerable<IValidator<TRequest>> _validators;
@ -33,4 +33,4 @@ public class ValidatorBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest
return await next(); return await next();
} }
}
}

Loading…
Cancel
Save