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

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