예제 #1
0
 private static void CheckConnectCallback(IAsyncResult ar)
 {
     Microsoft.ServiceBus.Messaging.NetworkDetector.CheckAsyncResult asyncState = (Microsoft.ServiceBus.Messaging.NetworkDetector.CheckAsyncResult)ar.AsyncState;
     if (asyncState.timer == null || asyncState.timer.Cancel())
     {
         asyncState.@value = Microsoft.ServiceBus.Messaging.NetworkDetector.CheckConnectAsyncResult.End(ar);
         asyncState.TryComplete(ar.CompletedSynchronously);
     }
 }
예제 #2
0
 private static void TimerCallback(object state)
 {
     Microsoft.ServiceBus.Messaging.NetworkDetector.CheckAsyncResult checkAsyncResult = (Microsoft.ServiceBus.Messaging.NetworkDetector.CheckAsyncResult)state;
     checkAsyncResult.@value = false;
     checkAsyncResult.TryComplete(false);
 }