public CommandDispatch(ICommandDispatch src) : this(new CommandDispatch(src)) { }
void ICommandPatternObserver.OnCommandDispatched(ICommandDispatch dispatch) => Dispatched?.Invoke((ICommandDispatch <TSpec>)dispatch);
void ICommandPatternObserver <TSpec> .OnCommandDispatched(ICommandDispatch <TSpec> dispatch) => Dispatched?.Invoke(dispatch);
public CommandCompletion(ICommandDispatch src, ICommandResult result, DateTime?ts = null) : base(src) { this.Result = new CommandResult <TSpec>(result); this.ts = ts ?? now(); }
public CommandPumpReceiver(IMessageReceiver receiver, ITextSerializer serilizer, ICommandDispatch commandDispatch, int maxDegreeOfParalism) : base(receiver, maxDegreeOfParalism) { Serializer = serilizer; Dispatch = commandDispatch; }
public CommandPumpReceiver(IMessageReceiver receiver, int maxDegreeOfParalism = 1) : base(receiver, maxDegreeOfParalism) { Serializer = new JsonTextSerializer(); Dispatch = new CommandDispatch(); }