public ISendCommandCallback Send(IDomainCommand command, Action <IDictionary <string, string> > configHeaders = null) { UseConfigHeaders(configHeaders); var callback = Bus.Send(command); var result = new SendCommandCallback(callback); return(result); }
public ISendCommandCallback Send <TCommand>(Action <TCommand> initCommand, Action <IDictionary <string, string> > configHeaders = null) where TCommand : class, IDomainCommand { UseConfigHeaders(configHeaders); var callback = Bus.Send(initCommand); var result = new SendCommandCallback(callback); return(result); }