示例#1
0
        public override bool OnRun(FormTesting form, int count)
        {
            SystemMonitor.Info("Start...");

            for (int i = 0; i < count; i++)
            {
                client1.CallDirectLocal <DirectCallSpeedTest_Interface>(client2.Id).Run();
                //if (client1.DirectLocalCall<DirectCallSpeedTest_Interface>(client2.Id).Run() != 12)
                //{
                //    throw new Exception("Failure");
                //}
            }

            base.SignalTestComplete();
            return(true);
        }
        public override bool OnRun(FormTesting form, int count)
        {
            SuperPoolCall call = new SuperPoolCall(1712);

            // Generate a typical call.
            call.MethodInfoLocal = (MethodInfo)MethodInfo.GetCurrentMethod();
            call.Parameters = new object[] { "asdwdas", 85923, EventArgs.Empty };
            call.RequestResponse = false;
            call.State = SuperPoolCall.StateEnum.Finished;

            object result;
            for (_executed = 0; _executed < count; _executed++)
            {
                result = SerializationHelper.BinaryClone(call);
            }

            return true;
        }
        public override bool OnRun(FormTesting form, int count)
        {
            SuperPoolCall call = new SuperPoolCall(1712);

            // Generate a typical call.
            call.MethodInfoLocal = (MethodInfo)MethodInfo.GetCurrentMethod();
            call.Parameters      = new object[] { "asdwdas", 85923, EventArgs.Empty };
            call.RequestResponse = false;
            call.State           = SuperPoolCall.StateEnum.Finished;

            object result;

            for (_executed = 0; _executed < count; _executed++)
            {
                result = SerializationHelper.BinaryClone(call);
            }

            return(true);
        }
示例#4
0
        public override bool OnRun(FormTesting form, int count)
        {
            if (_testEventHandling)
            {
                client1.SubscribeAll <Interface1>().Event1 += new EventHandler(SuperPoolSpeedTest_Event1);
                //client1.Subscribe<Interface1>().Event1 -= new EventHandler(SuperPoolSpeedTest_Event1);
            }

            SystemMonitor.Info("Start...");

            if (Event1 != null)
            {
                Event1(this, EventArgs.Empty);
            }

            client1.Call <Interface1>(client1.Id).Prop1 = 73;

            for (int i = 0; i < count; i++)
            {
                //AA x = pool.Call<Interface1>(client1.Id).Run(2);
                //string res = pool.Call<Interface1>(client1.Id).Run(string.Empty);
                client1.Call <Interface1>(client1.Id).Run3();
                //int xa = client2.Call<Interface1>().Prop1;

                //int result = client1.CallSync<Interface1>(client1.Id, TimeSpan.FromSeconds(2)).Run2();
                //if (result != i)
                //{
                //    int h = 11;
                //}
                //x = pool.Call<Interface1>(6).Run(2);
            }

            if (_testEventHandling)
            {
                client1.SubscribeAll <Interface1>().Event1 -= new EventHandler(SuperPoolSpeedTest_Event1);
            }

            //pool._builder.Save();
            return(true);
        }
示例#5
0
        public override bool OnRun(FormTesting form, int count)
        {
            SystemMonitor.Info("Start...");

            for (int i = 0; i < count; i++)
            {
                client1.CallDirectLocal<DirectCallSpeedTest_Interface>(client2.Id).Run();
                //if (client1.DirectLocalCall<DirectCallSpeedTest_Interface>(client2.Id).Run() != 12)
                //{
                //    throw new Exception("Failure");
                //}
            }

            base.SignalTestComplete();
            return true;
        }
示例#6
0
 public override void Update(FormTesting form)
 {
 }
示例#7
0
 public override void Update(FormTesting form)
 {
 }
示例#8
0
        public override bool OnRun(FormTesting form, int count)
        {
            if (_testEventHandling)
            {
                client1.SubscribeAll<Interface1>().Event1 += new EventHandler(SuperPoolSpeedTest_Event1);
                //client1.Subscribe<Interface1>().Event1 -= new EventHandler(SuperPoolSpeedTest_Event1);
            }

            SystemMonitor.Info("Start...");

            if (Event1 != null)
            {
                Event1(this, EventArgs.Empty);
            }

            client1.Call<Interface1>(client1.Id).Prop1 = 73;

            for (int i = 0; i < count; i++)
            {
                //AA x = pool.Call<Interface1>(client1.Id).Run(2);
                //string res = pool.Call<Interface1>(client1.Id).Run(string.Empty);
                client1.Call<Interface1>(client1.Id).Run3();
                //int xa = client2.Call<Interface1>().Prop1;

                //int result = client1.CallSync<Interface1>(client1.Id, TimeSpan.FromSeconds(2)).Run2();
                //if (result != i)
                //{
                //    int h = 11;
                //}
                //x = pool.Call<Interface1>(6).Run(2);
            }

            if (_testEventHandling)
            {
                client1.SubscribeAll<Interface1>().Event1 -= new EventHandler(SuperPoolSpeedTest_Event1);
            }

            //pool._builder.Save();
            return true;
        }