Exemplo n.º 1
0
 public bool TryExecute(ICommand command) => RedirectToWhen.InvokeCommandIfHandlerFound(this, command);
Exemplo n.º 2
0
 public bool TryApply(IEvent e) => RedirectToWhen.InvokeEventIfHandlerFound(this, e);
Exemplo n.º 3
0
 public void Apply(IEvent <IIdentity> e)
 {
     Version += 1;
     RedirectToWhen.InvokeEventOptional(this, e);
 }
 public void Execute(ICommand c)
 {
     RedirectToWhen.InvokeCommand(this, c);
 }
Exemplo n.º 5
0
 public bool TryApply(IEvent @event)
 {
     this.logger.LogInformation("Routing event {0}", @event);
     return(RedirectToWhen.InvokeEventIfHandlerFound(this, @event));
 }
Exemplo n.º 6
0
 public void OnNext(ISystemEvent value)
 {
     RedirectToWhen.InvokeEventOptional(this, value);
 }
Exemplo n.º 7
0
 public void Execute(object command)
 {
     RedirectToWhen.InvokeCommand(this, command);
 }
Exemplo n.º 8
0
 private void InternalApply(object e)
 {
     Version++;
     RedirectToWhen.InvokeEventOptional((T)this, e);
 }
Exemplo n.º 9
0
 public bool TryApply(IEvent @event)
 {
     return(RedirectToWhen.InvokeEventIfHandlerFound(this, @event));
 }
Exemplo n.º 10
0
 public void Apply <TExactStateType>(IEvent @event) where TExactStateType : class
 {
     RedirectToWhen.InvokeEvent(this as TExactStateType, @event);
 }
 public void FireWhen()
 {
     RedirectToWhen.InvokeEventOptional(this, new TestEvent());
 }
Exemplo n.º 12
0
 public void Execute(ICommand <SecurityId> c)
 {
     RedirectToWhen.InvokeCommand(this, c);
 }
Exemplo n.º 13
0
 private void Apply(IEvent e)
 {
     Version++;
     RedirectToWhen.InvokeCommand(this, e);
 }
 public void Apply(IEvent e)
 {
     RedirectToWhen.InvokeOptional(this, e);
 }
Exemplo n.º 15
0
        public void Execute(ICommand <UserId> c)
        {
            ThrowOnInvalidStateTransition(c);

            RedirectToWhen.InvokeCommand(this, c);
        }
Exemplo n.º 16
0
 public void Mutate(IEvent e)
 {
     RedirectToWhen.InvokeEventOptional(this, e);
 }
Exemplo n.º 17
0
 public void Modify(object @event)
 {
     Version++;
     RedirectToWhen.InvokeEventOptional(this, @event);
 }