protected HandlerFactory(HandlerFactoryConfiguration factoryConfiguration, Type handlerInterfaceGenericType, Type messageInterfaceType) { this._handlerInterfaceGenericType = handlerInterfaceGenericType; this._messageInterfaceType = messageInterfaceType; foreach (var assembly in factoryConfiguration.MessageAssembliesToScan) { RegisterMessageAssembly(assembly); } foreach (var type in factoryConfiguration.OrderedHandlers) { RegisterHandler(type); } foreach (var assembly in factoryConfiguration.HandlerAssembliesToScan) { RegisterAssemblyHandlers(assembly); } }
public BusinessLogicEventsHandlerFactory(HandlerFactoryConfiguration factoryConfiguration) : base(factoryConfiguration, typeof(IBusinessLogicEventHandler <>), typeof(IBusinessLogicEvent)) { }