Example #1
0
 public ValidationPipelineBehavior(IValidationErrorsAccessor validationErrorsAccessor, IServiceProvider serviceProvider, IMessageMetadata messageMetadata)
 {
     _validationErrorsAccessor = validationErrorsAccessor ?? throw new ArgumentNullException(nameof(validationErrorsAccessor));
     _serviceProvider          = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     _messageMetadata          = messageMetadata ?? throw new ArgumentNullException(nameof(messageMetadata));
 }
Example #2
0
 public ValidationMessagePipelineHandler(IValidationErrorsAccessor validationErrorsAccessor, IServiceProvider serviceProvider)
 {
     _validationErrorsAccessor = validationErrorsAccessor ?? throw new ArgumentNullException(nameof(validationErrorsAccessor));
     _serviceProvider          = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
 }