IChannelListener<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 a specified type for communication with a client.
Overloads
AcceptChannel() |
Accepts a channel of a specified type for communication with a client. |
AcceptChannel(TimeSpan) |
Accepts a channel of a specified type for communication with a client within a specified interval of time. |
Remarks
It is recommended that the AcceptChannel(TimeSpan) overload with the explicit timeout be used. The timeout
specified for that method overrides any default timeouts set by the system for the service.
AcceptChannel()
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
Accepts a channel of a specified type for communication with a client.
public:
TChannel AcceptChannel();
public TChannel AcceptChannel ();
abstract member AcceptChannel : unit -> 'Channel
Public Function AcceptChannel () As TChannel
Returns
A channel of type TChannel
accepted by the listener.
Remarks
It is recommended that the AcceptChannel(TimeSpan) overload with the explicit timeout be used. The timeout
specified for that method overrides any default timeouts set by the system for the service.
Applies to
AcceptChannel(TimeSpan)
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
Accepts a channel of a specified type for communication with a client within a specified interval of time.
public:
TChannel AcceptChannel(TimeSpan timeout);
public TChannel AcceptChannel (TimeSpan timeout);
abstract member AcceptChannel : TimeSpan -> 'Channel
Public Function AcceptChannel (timeout As TimeSpan) As TChannel
Parameters
- timeout
- TimeSpan
The TimeSpan that specifies how long the wait for a channel operation has to complete before timing out.
Returns
A channel of type TChannel
accepted by the listener.
Remarks
It is recommended that this overload with an explicit timeout be used rather than the AcceptChannel(). The timeout
specified for this method overrides any default timeouts set by the system for the service.