public void When(ConsumerDetailsDispatched @event) { switch (_state) { case State.AwaitingConsumerDetailsDispatch: SetInternalState(State.AwaitingGridOperatorNotification); SendCommand(new NotifyGridOperator(_processId !)); break; default: ThrowIfStateDoesNotMatch(@event); break; } }
public Task Handle(ConsumerDetailsDispatched notification, CancellationToken cancellationToken) { throw new System.NotImplementedException(); }