/// <summary> /// Initializes a new instance of the <see cref="CommandProcessor"/> class. /// </summary> /// <param name="receiver">The receiver to use. If the receiver is <see cref="IDisposable"/>, it will be disposed when the processor is /// disposed.</param> /// <param name="serializer">The serializer to use for the message body.</param> public CommandProcessor(IMessageReceiver receiver, ITextSerializer serializer) : base(receiver, serializer) { this.commandDispatcher = new CommandDispatcher(); }
public SynchronousCommandBusDecorator(ICommandBus commandBus) { this.commandBus = commandBus; this.commandDispatcher = new CommandDispatcher(); }
/// <summary> /// Initializes a new instance of the <see cref="CommandProcessor" /> class. /// </summary> /// <param name="receiver"> /// The receiver to use. If the receiver is <see cref="IDisposable" />, it will be disposed when the processor is /// disposed. /// </param> /// <param name="serializer">The serializer to use for the message body.</param> public CommandProcessor(IMessageReceiver receiver, ITextSerializer serializer) : base(receiver, serializer) { commandDispatcher = new CommandDispatcher(); }