public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) { using (MsmqDiagnostics.BoundReceiveOperation(this.receiver)) { return(InputChannel.HelpBeginReceive(this, timeout, callback, state)); } }
public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) { #if FEATURE_CORECLR throw new NotImplementedException("InputChannel not supported in .NET Core"); #else return(InputChannel.HelpBeginReceive((IInputChannel)this, timeout, callback, state)); #endif }
public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) { if (timeout < TimeSpan.Zero) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("timeout", timeout, System.ServiceModel.SR.GetString("SFxTimeoutOutOfRange0"))); } base.ThrowPending(); return(InputChannel.HelpBeginReceive(this, timeout, callback, state)); }
public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) { if (timeout < TimeSpan.Zero) { throw FxTrace.Exception.AsError(new ArgumentOutOfRangeException("timeout", timeout, SR.TimeoutOutOfRange0)); } this.ThrowPending(); return(InputChannel.HelpBeginReceive(this, timeout, callback, state)); }
public override IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) { return(InputChannel.HelpBeginReceive(this, timeout, callback, state)); }