示例#1
0
 public void EndClose(IAsyncResult result)
 {
     if (result is AlreadyClosedAsyncResult)
     {
         CompletedAsyncResult.End(result);
     }
     else
     {
         CloseAsyncResult.End(result);
     }
 }
示例#2
0
 public void OnEndOuterListenerClose(IAsyncResult result)
 {
     if (result is CompletedAsyncResult)
     {
         CompletedAsyncResult.End(result);
     }
     else
     {
         CloseAsyncResult <TInnerChannel, TInnerItem> .End(result);
     }
 }
示例#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);
     }
 }
示例#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();
     }
 }
示例#5
0
 public void EndClose(IAsyncResult result)
 {
     try
     {
         if (result is CompletedAsyncResult)
         {
             CompletedAsyncResult.End(result);
         }
         else
         {
             CloseAsyncResult.End(result);
         }
     }
     finally
     {
         this.NotifyClosed();
     }
 }
示例#6
0
 protected override void OnEndClose(IAsyncResult result)
 {
     CloseAsyncResult <TChannel> .End(result);
 }
示例#7
0
 protected virtual void OnClose(TimeSpan timeout)
 {
     CloseAsyncResult.End(new CloseAsyncResult(this, timeout, null, null));
 }
 public void EndClose(IAsyncResult result)
 {
     CloseAsyncResult.End(result);
 }
示例#9
0
 protected override void OnEndClose(IAsyncResult result)
 {
     CloseAsyncResult <QueueItemType> .End(result);
 }
 internal override void EndClose(IAsyncResult result)
 {
     CloseAsyncResult.End(result);
 }