Editare

Partajați prin


IChannelListener<TChannel>.AcceptChannel Method

Definition

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

TChannel

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

TChannel

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.

Applies to