public bool TryExecute(ICommand command) => RedirectToWhen.InvokeCommandIfHandlerFound(this, command);
public bool TryApply(IEvent e) => RedirectToWhen.InvokeEventIfHandlerFound(this, e);
public void Apply(IEvent <IIdentity> e) { Version += 1; RedirectToWhen.InvokeEventOptional(this, e); }
public void Execute(ICommand c) { RedirectToWhen.InvokeCommand(this, c); }
public bool TryApply(IEvent @event) { this.logger.LogInformation("Routing event {0}", @event); return(RedirectToWhen.InvokeEventIfHandlerFound(this, @event)); }
public void OnNext(ISystemEvent value) { RedirectToWhen.InvokeEventOptional(this, value); }
public void Execute(object command) { RedirectToWhen.InvokeCommand(this, command); }
private void InternalApply(object e) { Version++; RedirectToWhen.InvokeEventOptional((T)this, e); }
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()); }
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); }
public void Execute(ICommand <UserId> c) { ThrowOnInvalidStateTransition(c); RedirectToWhen.InvokeCommand(this, c); }
public void Mutate(IEvent e) { RedirectToWhen.InvokeEventOptional(this, e); }
public void Modify(object @event) { Version++; RedirectToWhen.InvokeEventOptional(this, @event); }