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>(); }
public SimpleMediator(IEventRegistrator registrator, IServiceProvider provider) { this.registrator = registrator; this.provider = provider; }