/// <summary>
 /// Rollback the transaction.
 /// </summary>
 public override void Rollback()
 {
     base.Rollback();
     domainEventStorage.Rollback();
     if (this.snapshotProvider != null && this.snapshotProvider.Option == SnapshotProviderOption.Immediate)
     {
         this.snapshotProvider.Rollback();
     }
 }
Example #2
0
 public void Rollback()
 {
     _bus.Rollback();
     _domainEventStorage.Rollback();
     foreach (var eventProvider in _eventProviders)
     {
         _identityMap.Remove(eventProvider.GetType(), eventProvider.Id);
     }
     _eventProviders.Clear();
 }