Initialize() public method

public Initialize ( Assembly assembly, IMessageMapper messageMapper ) : void
assembly System.Reflection.Assembly
messageMapper IMessageMapper
return void
		public static void Configure(Type typeToLocatorConfigurationAssembly)
		{
			var rulesEngine = new MvcContrib.CommandProcessor.RulesEngine();
			rulesEngine.Initialize(typeToLocatorConfigurationAssembly.Assembly, new CcsMessageMapper());
			ConventionConfiguration(rulesEngine.Configuration, typeof (UserInput), typeof (UpdateUserCommandMessage));
			MvcContrib.CommandProcessor.RulesEngine.MessageProcessorFactory = new CcsMessageProcessorFactory();
		}
 public static void Configure(Type typeToLocatorConfigurationAssembly)
 {
     var rulesEngine = new RulesEngine();
      RulesEngine.MessageProcessorFactory = new MessageProcessorFactory();
      rulesEngine.Initialize(typeToLocatorConfigurationAssembly.Assembly, new MessageMapper());
      ServiceLocator.SetLocatorProvider(() => new StructureMapProvider());
 }
Ejemplo n.º 3
0
        public static void Configure(Type typeToLocatorConfigurationAssembly)
        {
            var rulesEngine = new MvcContrib.CommandProcessor.RulesEngine();

            rulesEngine.Initialize(typeToLocatorConfigurationAssembly.Assembly, new CcsMessageMapper());
            ConventionConfiguration(rulesEngine.Configuration, typeof(UserInput), typeof(UpdateUserCommandMessage));
            MvcContrib.CommandProcessor.RulesEngine.MessageProcessorFactory = new CcsMessageProcessorFactory();
        }