Example #1
0
        /// <summary>
        /// Starts the Telco Rating Engine.
        /// </summary>
        /// <param name="args">
        /// args[0] the number of dozens of calls data to create
        /// args[1] the full path of telco-rating.ruleml
        /// </param>
        public static void Main(string[] args)
        {
            RatingEngine re = new RatingEngine(0, Int32.Parse(args[0]), args[1]);

            int maxRun = (args.Length==3)?Int32.Parse(args[2]):Int32.MaxValue;

            for(int i=0; i<maxRun; i++) {
                re.Run();
                GC.Collect();
                Console.WriteLine("Total Memory: {0}", GC.GetTotalMemory(true));
            }
        }
Example #2
0
		/// <summary>
		/// Starts the Telco Rating Engine.
		/// </summary>
		/// <param name="args">
		/// args[0] the number of dozens of calls data to create
		/// args[1] the full path of telco-rating.ruleml
		/// </param>
		public static void Main(string[] args) {
			// basic test
//			new RatingEngine(2, Int32.Parse(args[0]), args[1]).Run();
			
			//torture test, Ctrl+C to stop it
			RatingEngine re = new RatingEngine(0, Int32.Parse(args[0]), args[1]);
			while(true) {
				re.Run();
				GC.Collect();
				Console.WriteLine("Total Memory: {0}", GC.GetTotalMemory(true));
			}
		}