Exemplo n.º 1
0
 /// <summary>
 /// Apply a new event to the EventSource.  This will be applied and added to the <see cref="UncommittedEvents">uncommitted events</see>.
 /// </summary>
 /// <param name="event">The event that is to be applied.</param>
 public void Apply(IEvent @event)
 {
     ThrowIfEventIsNull(@event);
     _uncommittedEvents.Add(@event);
     Version++;
     InvokeOnMethod(@event);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Appends an event to the uncommitted sequence.
 /// </summary>
 /// <param name="event"><see cref="IEvent"/> to append.</param>
 public void Append(IEvent @event)
 {
     ThrowIfEventIsNull(@event);
     _events.Add(@event);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Appends an event to the uncommitted sequence.
 /// </summary>
 /// <param name="event"><see cref="UncommittedEvent"/> to append.</param>
 public void Append(UncommittedEvent @event)
 {
     ThrowIfEventIsNull(@event);
     _events.Add(@event);
 }