Beispiel #1
0
            public void Continuation(object sender, EventArgs e)
            {
                var req = (RandomRequest)sender;

                if (req.Id != reqId)
                {
                    return;
                }
                RandomRequest.Completed -= Continuation;

                result = req.Result;
                engine.Resume();
            }
Beispiel #2
0
 public virtual void Continuation(T result)
 {
     lock (this)
     {
         if (_gotResult)
         {
             return;
         }
         _gotResult = true;
     }
     _result = result;
     _engine.Resume();
 }
Beispiel #3
0
 public void Continuation(object sender, EventArgs e)
 {
     ((Group)sender).Shuffled -= Continuation;
     engine.Resume();
 }