Пример #1
0
        static void FactoryCloseCallback(IAsyncResult result)
        {
            if (result.CompletedSynchronously)
            {
                return;
            }
            IChannelFactory factory = (IChannelFactory)result.AsyncState;

            factory.EndClose(result);
        }
Пример #2
0
 static void BindLifetimes(IChannelFactory factory, IChannel channel)
 {
     channel.Closed += delegate
     {
         IAsyncResult result = factory.BeginClose(FactoryCloseCallback, factory);
         if (result.CompletedSynchronously)
         {
             factory.EndClose(result);
         }
     };
 }
Пример #3
0
 protected override void OnEndClose(IAsyncResult result)
 {
     inner.EndClose(result);
 }
Пример #4
0
 protected override void OnEndClose(IAsyncResult result)
 {
     innerChannelFactory.EndClose(result);
 }
Пример #5
0
 public void EndClose(IAsyncResult result)
 {
     _innerChannelFactory.EndClose(result);
 }