Beispiel #1
0
 public void EndClose(IAsyncResult result)
 {
     if (result is AlreadyClosedAsyncResult)
     {
         CompletedAsyncResult.End(result);
     }
     else
     {
         CloseAsyncResult.End(result);
     }
 }
Beispiel #2
0
 public void OnEndOuterListenerClose(IAsyncResult result)
 {
     if (result is CompletedAsyncResult)
     {
         CompletedAsyncResult.End(result);
     }
     else
     {
         CloseAsyncResult <TInnerChannel, TInnerItem> .End(result);
     }
 }
Beispiel #3
0
 public void EndClose(IAsyncResult result)
 {
     if (result is CompletedAsyncResult)
     {
         CompletedAsyncResult.End(result);
     }
     else
     {
         AmqpTrace.Provider.AmqpLogOperationVerbose(this, TraceOperation.Execute, "EndClose");
         CloseAsyncResult.End(result);
     }
 }
Beispiel #4
0
 protected override void OnEndClose(IAsyncResult result)
 {
     try
     {
         CloseAsyncResult.End(result);
         this.TraceBaseAddresses();
         ThreadTrace.StopTracing();
     }
     catch (TimeoutException exception)
     {
         if (DiagnosticUtility.ShouldTraceWarning)
         {
             TraceUtility.TraceEvent(TraceEventType.Warning, 0x8002e, System.ServiceModel.SR.GetString("TraceCodeServiceHostTimeoutOnClose"), this, exception);
         }
         base.Abort();
     }
 }
Beispiel #5
0
 public void EndClose(IAsyncResult result)
 {
     try
     {
         if (result is CompletedAsyncResult)
         {
             CompletedAsyncResult.End(result);
         }
         else
         {
             CloseAsyncResult.End(result);
         }
     }
     finally
     {
         this.NotifyClosed();
     }
 }
Beispiel #6
0
 protected override void OnEndClose(IAsyncResult result)
 {
     CloseAsyncResult <TChannel> .End(result);
 }
Beispiel #7
0
 protected virtual void OnClose(TimeSpan timeout)
 {
     CloseAsyncResult.End(new CloseAsyncResult(this, timeout, null, null));
 }
 public void EndClose(IAsyncResult result)
 {
     CloseAsyncResult.End(result);
 }
Beispiel #9
0
 protected override void OnEndClose(IAsyncResult result)
 {
     CloseAsyncResult <QueueItemType> .End(result);
 }
 internal override void EndClose(IAsyncResult result)
 {
     CloseAsyncResult.End(result);
 }