Ejemplo n.º 1
0
 // Events appling
 internal void ApplyEvent(Event @event)
 {
     Applying?.Invoke(this, new EventArgs <Event>(@event));
     Validate(@event);
     Validated?.Invoke(this, new EventArgs <Event>(@event));
     Handle(@event);
     Handled?.Invoke(this, new EventArgs <Event>(@event));
     pendingEvents.Push(@event);
     Pendent?.Invoke(this, new EventArgs <Event>(@event));
 }
Ejemplo n.º 2
0
 public Task Handle(OutOfBandNotification notification, CancellationToken cancellationToken)
 {
     Handled?.Invoke(this, notification);
     return(Task.CompletedTask);
 }
Ejemplo n.º 3
0
 protected virtual void OnHandled(DeltaFileTransaction transaction)
 {
     Handled?.Invoke(this, transaction);
 }
Ejemplo n.º 4
0
 public Task <Unit> Handle(OutOfBandCommand request, CancellationToken cancellationToken)
 {
     Handled?.Invoke(this, request);
     return(Unit.Task);
 }