Message pipeline throws ArgumentNullException when command is null.
System.ArgumentNullException: Value cannot be null.
Parameter name: command
at Saritasa.Tools.Messages.Commands.CommandPipeline.CreateMessageContext(IMessagePipelineService pipelineService, Object command)
at Saritasa.Tools.Messages.Abstractions.MessagePipelineServiceExtensions.d__3.MoveNext()
Is it possible to throw MessageProcessingException instead? I need something like CommandValidationMiddleware to validate null commands.
Message pipeline throws ArgumentNullException when command is null.
Is it possible to throw
MessageProcessingException
instead? I need something likeCommandValidationMiddleware
to validate null commands.