RegisterFactory() 공개 메소드

public RegisterFactory ( Type genericCommand, Type factoryInterface, Type factoryInstace ) : void
genericCommand System.Type
factoryInterface System.Type
factoryInstace System.Type
리턴 void
        private static void RegisterFactories(Type type, Registry registry)
        {
            var factoryRegistrar = new HandlerFactoryRegistrar(type, registry);

            factoryRegistrar.RegisterFactory(typeof(IUpdateCommand <,>), typeof(IUpdateHandlerFactory <,>), typeof(UpdateHandlerFactory <,>));
            factoryRegistrar.RegisterFactory(typeof(ICreateCommand <,>), typeof(ICreateHandlerFactory <,>), typeof(CreateHandlerFactory <,>));
        }
예제 #2
0
 private static void RegisterFactories(Type type, Registry registry)
 {
     var factoryRegistrar = new HandlerFactoryRegistrar(type, registry);
     factoryRegistrar.RegisterFactory(typeof(IUpdateCommand<,>), typeof(IUpdateHandlerFactory<,>), typeof(UpdateHandlerFactory<,>));
     factoryRegistrar.RegisterFactory(typeof(ICreateCommand<,>), typeof(ICreateHandlerFactory<,>), typeof(CreateHandlerFactory<,>));
 }