示例#1
0
        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);
            }
        }
示例#2
0
 public BusinessLogicEventsHandlerFactory(HandlerFactoryConfiguration factoryConfiguration)
     : base(factoryConfiguration, typeof(IBusinessLogicEventHandler <>), typeof(IBusinessLogicEvent))
 {
 }