CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ PrepareAndValidateCommand< TCommand >()

virtual bool Cqrs.Bus.InProcessBus< TAuthenticationToken >.PrepareAndValidateCommand< TCommand > ( TCommand  command,
out RouteHandlerDelegate  commandHandler 
)
protectedvirtual

Locates a suitable ICommandValidator<TAuthenticationToken,TCommand> to validate the provided command and validates the provided command if one is located Calls PrepareCommand<TCommand> Checks if the provided command is required to be processed Locates a single command handler for the provided command

Returns
False if a suitable ICommandValidator<TAuthenticationToken,TCommand> is located and the provided command fails validation, False if no command handler is found but the command isn't required to be handled, True otherwise.
Type Constraints
TCommand :ICommand<TAuthenticationToken>