Redigera

Dela via


ChannelListenerBase<TChannel>.AcceptChannel Method

Definition

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

TChannel

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

TChannel

The IChannel accepted by the listener.

Implements

Applies to