示例#1
0
 private void Apply(IAccountEvent e)
 {
     _state.Mutate(e);
     _changes.Add(e);
 }
示例#2
0
 public void Mutate(IAccountEvent e)
 {
     this.When(e as dynamic);
 }
示例#3
0
        public void Apply(IAccountEvent e)
        {
            RedirectToWhen <AccountAggregateReader> .Invoke(this, e);

            _observer.OnNext(e);
        }
示例#4
0
 public static void Add(IAccountEvent e)
 {
     Events.Add(e);
 }
 public void Apply(IAccountEvent e)
 {
     RedirectToWhen<AccountAggregateReader>.Invoke(this, e);
     _observer.OnNext(e);
 }