コード例 #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));
 }