Пример #1
0
 public EventProvider(Type hostType, IEventRegistrator eventRegistrator, ICacheRegisteredEvents cacheRegisteredEvents)
 {
     _hostType = hostType;
     _eventRegistrator = eventRegistrator;
     _cacheRegisteredEvents = cacheRegisteredEvents;
     EventVersion = 0;
     _appliedEvents = new List<IDomainEvent>();
     _internalState = new Dictionary<string, object>();
 }
Пример #2
0
 public SimpleMediator(IEventRegistrator registrator, IServiceProvider provider)
 {
     this.registrator = registrator;
     this.provider    = provider;
 }