Example #1
0
 internal HistoryManager(TExecutionContext executionContext, IEventPublisher eventPublisher, IExceptionManager exceptionManager, IHistoryItemFactory historyItemFactory, IRollBackCommandFactory rollBackCommandFactory, IList <IHistoryItem> history)
 {
     _executionContext       = executionContext;
     _eventPublisher         = eventPublisher;
     _exceptionManager       = exceptionManager;
     _history                = history;
     _historyItemFactory     = historyItemFactory;
     _rollBackCommandFactory = rollBackCommandFactory;
     resetState();
 }
Example #2
0
 public HistoryManager(TExecutionContext executionContext, IEventPublisher eventPublisher, IExceptionManager exceptionManager, IHistoryItemFactory historyItemFactory, IRollBackCommandFactory rollBackCommandFactory)
     : this(executionContext, eventPublisher, exceptionManager, historyItemFactory, rollBackCommandFactory, new List <IHistoryItem>())
 {
 }