public EventStoreFeature(SubscriptionSettings subscriptionSettings, params Assembly[] assembliesWithEvents)
 {
     this.assembliesWithEvents = assembliesWithEvents ?? new[] { Assembly.GetExecutingAssembly() };
     this.subscriptionSettings = subscriptionSettings;
     EventTypes.ScanForEvents(assembliesWithEvents);
     log = LogManager.GetLogger(GetType());
 }