ChannelListenerBase<TChannel>.AcceptChannel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Accepts a channel of the type specified by the current channel listener.
Overloads
AcceptChannel() |
Accepts a channel of the type specified by the current channel listener. |
AcceptChannel(TimeSpan) |
Accepts a channel of the type specified by the current channel listener within a specified interval of time. |
AcceptChannel()
Accepts a channel of the type specified by the current channel listener.
public:
virtual TChannel AcceptChannel();
public TChannel AcceptChannel ();
abstract member AcceptChannel : unit -> 'Channel
override this.AcceptChannel : unit -> 'Channel
Public Function AcceptChannel () As TChannel
Returns
The IChannel accepted by the listener.
Implements
Applies to
AcceptChannel(TimeSpan)
Accepts a channel of the type specified by the current channel listener within a specified interval of time.
public:
virtual TChannel AcceptChannel(TimeSpan timeout);
public TChannel AcceptChannel (TimeSpan timeout);
abstract member AcceptChannel : TimeSpan -> 'Channel
override this.AcceptChannel : TimeSpan -> 'Channel
Public Function AcceptChannel (timeout As TimeSpan) As TChannel
Parameters
- timeout
- TimeSpan
The TimeSpan that specifies how long the accept channel operation has to complete before timing out.
Returns
The IChannel accepted by the listener.