Inheritance: IRulesEngine
		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());
 }
Beispiel #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();
        }