コード例 #1
0
 public void ReceiveWaitTimeOut2Test()
 {
     TestLauncherActor.Test(() =>
     {
         var actor      = new ReceiveActor <int, string>();
         var target     = new TargetActor();
         var resultEven = actor.Wait((IActor)target, 2, 2000);
         Assert.IsTrue(resultEven.Result.Item2 == "even");
     });
 }
コード例 #2
0
 public void ReceiveWait4Test()
 {
     TestLauncherActor.Test(() =>
     {
         var actor      = new ReceiveActor <int>();
         var target     = new TargetActor2();
         var resultEven = actor.Wait(target, 2);
         Assert.IsTrue(resultEven.Result.Item2 == 4);
     });
 }
コード例 #3
0
 public void ReceiveWaitTimeOut1Test()
 {
     TestLauncherActor.Test(() =>
     {
         var actor     = new ReceiveActor <int, string>();
         var target    = new TargetActor();
         var resultOdd = actor.Wait(target, 1, 10000);
         Assert.IsTrue(resultOdd.Result.Item2 == "odd");
     });
 }
コード例 #4
0
 public void ReceiveWaitTimeOut3Test()
 {
     TestLauncherActor.Test(() =>
     {
         var actor      = new ReceiveActor <int>();
         var target     = new TargetActor2();
         var resultEven = actor.Wait((IActor)target, 1, 2000);
         Assert.IsTrue(resultEven.Result.Item2 == 2);
     });
 }
コード例 #5
0
        public int  WaitForResult()
        {
            var res = fWait.Wait(this, "Start").Result;

            return(fSum);
        }