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); } }
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)); }