Inheritance: IRulesEngine
コード例 #1
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();
		}
コード例 #2
0
 public static void Configure(Type typeToLocatorConfigurationAssembly)
 {
     var rulesEngine = new RulesEngine();
      RulesEngine.MessageProcessorFactory = new MessageProcessorFactory();
      rulesEngine.Initialize(typeToLocatorConfigurationAssembly.Assembly, new MessageMapper());
      ServiceLocator.SetLocatorProvider(() => new StructureMapProvider());
 }
コード例 #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();
        }