示例#1
0
 public WaitForRequestAsyncResult(ServerReliableChannelBinder <TChannel> binder, TimeSpan timeout, AsyncCallback callback, object state) : base(binder, true, timeout, binder.DefaultMaskingMode, callback, state)
 {
     if (base.Start())
     {
         base.Complete(true);
     }
 }
        static void OnAcceptChannelCompleteStatic(IAsyncResult result)
        {
            if (!result.CompletedSynchronously)
            {
                ServerReliableChannelBinder <TChannel> binder =
                    (ServerReliableChannelBinder <TChannel>)result.AsyncState;

                binder.OnAcceptChannelComplete(result);
            }
        }
示例#3
0
 private IServerReliableChannelBinder CreateBinder(TInnerChannel channel, EndpointAddress localAddress, EndpointAddress remoteAddress)
 {
     return(ServerReliableChannelBinder <TInnerChannel> .CreateBinder(channel, localAddress, remoteAddress, TolerateFaultsMode.IfNotSecuritySession, this.DefaultCloseTimeout, this.DefaultSendTimeout));
 }
 protected override bool EndInput(ServerReliableChannelBinder <TChannel> binder,
                                  TChannel channel, IAsyncResult result, out bool complete)
 {
     complete = true;
     return(binder.OnEndWaitForRequest(channel, result));
 }
 protected override IAsyncResult BeginInput(
     ServerReliableChannelBinder <TChannel> binder, TChannel channel, TimeSpan timeout,
     AsyncCallback callback, object state)
 {
     return(binder.OnBeginWaitForRequest(channel, timeout, callback, state));
 }