Exemple #1
0
        /// <summary>
        /// Starts the FraudControl system.
        /// </summary>
        /// <param name="args">
        /// args[0] the number of tens of customers to create
        /// args[1] the full path of fraudcontrol.ruleml
        /// </param>
        public static void Main(string[] args)
        {
            FraudControl fc = new FraudControl(Int32.Parse(args[0]), args[1]);

            /// Demonstrates how to use a Custom Binder Class
            Console.WriteLine("\n\n************ Using Custom Binder Class ************\n");
            fc.PerformProcess(new CustomBinder());

            /// Demonstrates how to use a Custom Compiled Binder
            Console.WriteLine("\n\n************ Using Compiled Custom Binder ************\n");
            fc.PerformProcess(CSharpBinderFactory.LoadFromFile("NxBRE.Examples.CompiledCustomBinder",
                                                        args[1] + ".ccb"));

            /// Demonstrates how to use the Flow Engine Binder
            Console.WriteLine("************ Using Flow Engine Binder ************\n");
            fc.PerformProcess(new FlowEngineBinder(args[1] + ".xbre", BindingTypes.BeforeAfter));
        }
Exemple #2
0
        /// <summary>
        /// Starts the FraudControl system.
        /// </summary>
        /// <param name="args">
        /// args[0] the number of tens of customers to create
        /// args[1] the full path of fraudcontrol.ruleml
        /// </param>
        public static void Main(string[] args)
        {
            FraudControl fc = new FraudControl(Int32.Parse(args[0]), args[1]);

            /// Demonstrates how to use a Custom Binder Class
            Console.WriteLine("\n\n************ Using Custom Binder Class ************\n");
            fc.PerformProcess(new CustomBinder());

            /// Demonstrates how to use a Custom Compiled Binder
            Console.WriteLine("\n\n************ Using Compiled Custom Binder ************\n");
            fc.PerformProcess(CSharpBinderFactory.LoadFromFile("NxBRE.Examples.CompiledCustomBinder",
                                                               args[1] + ".ccb"));

            /// Demonstrates how to use the Flow Engine Binder
            Console.WriteLine("************ Using Flow Engine Binder ************\n");
            fc.PerformProcess(new FlowEngineBinder(args[1] + ".xbre", BindingTypes.BeforeAfter));
        }