示例#1
0
 public void Ping(IProcessPingCallback callback)
 {
     try
     {
         if (callback != null)
         {
             this._appManager.Ping(callback);
         }
     }
     catch (Exception exception)
     {
         using (new ProcessImpersonationContext())
         {
             Misc.ReportUnhandledException(exception, new string[] { System.Web.SR.GetString("Failure_PMH_Ping") });
         }
         throw;
     }
 }
 public void Ping(IProcessPingCallback callback) {
     try {
         if (callback != null)
             _appManager.Ping(callback);
     }
     catch (Exception e) {
         using (new ProcessImpersonationContext()) {
             Misc.ReportUnhandledException(e, new string[] {
                                       SR.GetString(SR.Failure_PMH_Ping)} );
         }
         throw;
     }
 }
 public virtual void Ping(IProcessPingCallback callback)
 {
 }
 internal void Ping(IProcessPingCallback callback)
 {
     if (((callback != null) && (this._pendingPingCallback == null)) && (Interlocked.CompareExchange(ref this._pendingPingCallback, callback, null) == null))
     {
         ThreadPool.QueueUserWorkItem(this._onRespondToPingWaitCallback);
     }
 }
	public virtual void Ping(IProcessPingCallback callback) {}