Exemple #1
0
 public void OnCompleted()
 {
     if (won)
     {
         downstream.OnCompleted();
     }
     else
     if (parent.TryWin(index))
     {
         won = true;
         downstream.OnCompleted();
     }
     Dispose();
 }
Exemple #2
0
 public void OnCompleted()
 {
     if (iwon)
     {
         downstream.OnCompleted();
     }
     else
     if (parent.TryWin(isLeft))
     {
         iwon = true;
         downstream.OnCompleted();
     }
     Dispose();
 }
Exemple #3
0
 public override void OnCompleted()
 {
     if (_iwon)
     {
         ForwardOnCompleted();
     }
     else if (_parent.TryWin(_isLeft))
     {
         _iwon = true;
         ForwardOnCompleted();
     }
     else
     {
         Dispose();
     }
 }