Exemple #1
0
 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);
Exemple #4
0
 public CommandCompletion(ICommandDispatch src, ICommandResult result, DateTime?ts = null)
     : base(src)
 {
     this.Result = new CommandResult <TSpec>(result);
     this.ts     = ts ?? now();
 }
Exemple #5
0
 public CommandPumpReceiver(IMessageReceiver receiver, ITextSerializer serilizer, ICommandDispatch commandDispatch, int maxDegreeOfParalism) : base(receiver, maxDegreeOfParalism)
 {
     Serializer = serilizer;
     Dispatch   = commandDispatch;
 }
Exemple #6
0
 public CommandPumpReceiver(IMessageReceiver receiver, int maxDegreeOfParalism = 1) : base(receiver, maxDegreeOfParalism)
 {
     Serializer = new JsonTextSerializer();
     Dispatch   = new CommandDispatch();
 }