コード例 #1
0
 /// <summary>
 /// 
 /// </summary>
 private static void FireReconnected(Connection connection, CancellationTokenSource reconnectTokenSource, ref int reconnectedFired)
 {
     if (!reconnectTokenSource.IsCancellationRequested)
     {
         if (Interlocked.Exchange(ref reconnectedFired, 1) == 0)
         {
             connection.OnReconnected();
         }
     }
 }