示例#1
0
 static void BindLifetimes(IChannelFactory factory, IChannel channel)
 {
     channel.Closed += delegate
     {
         IAsyncResult result = factory.BeginClose(FactoryCloseCallback, factory);
         if (result.CompletedSynchronously)
         {
             factory.EndClose(result);
         }
     };
 }
示例#2
0
 protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
 {
     return(inner.BeginClose(timeout, callback, state));
 }
示例#3
0
 public IAsyncResult BeginClose(AsyncCallback callback, object state)
 {
     return(_innerChannelFactory.BeginClose(callback, state));
 }