Edit

Share via


IChannelListener<TChannel>.BeginAcceptChannel Method

Definition

Begins an asynchronous operation to accept a channel within a specified or default interval of time.

Overloads

BeginAcceptChannel(AsyncCallback, Object)

Begins an asynchronous operation to accept a channel.

BeginAcceptChannel(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to accept a channel within a specified interval of time.

Remarks

It is recommended that the BeginAcceptChannel overload with the explicit timeout be used. The timeout specified for that method overrides any default timeouts set by the system for the service.

BeginAcceptChannel(AsyncCallback, Object)

Source:
IChannelListener.cs
Source:
IChannelListener.cs

Begins an asynchronous operation to accept a channel.

public:
 IAsyncResult ^ BeginAcceptChannel(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginAcceptChannel (AsyncCallback callback, object state);
abstract member BeginAcceptChannel : AsyncCallback * obj -> IAsyncResult
Public Function BeginAcceptChannel (callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

callback
AsyncCallback

The AsyncCallback delegate that receives the notification of the asynchronous completion of the accept for a channel operation.

state
Object

An object, specified by the application, that contains state information associated with the asynchronous accept for a channel operation.

Returns

The IAsyncResult that references the asynchronous acceptance of a channel operation.

Remarks

It is recommended that the BeginAcceptChannel(TimeSpan, AsyncCallback, Object) 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

BeginAcceptChannel(TimeSpan, AsyncCallback, Object)

Source:
IChannelListener.cs
Source:
IChannelListener.cs

Begins an asynchronous operation to accept a channel within a specified interval of time.

public:
 IAsyncResult ^ BeginAcceptChannel(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginAcceptChannel (TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginAcceptChannel : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginAcceptChannel (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

timeout
TimeSpan

The TimeSpan that specifies how long the wait for a channel operation has to complete before timing out.

callback
AsyncCallback

The AsyncCallback delegate that receives the notification of the asynchronous completion of the accept for a channel operation.

state
Object

An object, specified by the application, that contains state information associated with the asynchronous accept for a channel operation.

Returns

The IAsyncResult that references the asynchronous acceptance of a channel operation.

Remarks

It is recommended that this overload with an explicit timeout be used rather than the BeginAcceptChannel(TimeSpan, AsyncCallback, Object). The timeout specified for this method overrides any default timeouts set by the system for the service.

Applies to