IChannelListener<TChannel>.BeginAcceptChannel Method (TimeSpan, AsyncCallback, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

IAsyncResult BeginAcceptChannel(
	TimeSpan timeout,
	AsyncCallback callback,
	object state


Type: System.TimeSpan

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

Type: System.AsyncCallback

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

Type: System.Object

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

Return Value

Type: System.IAsyncResult

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

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.

.NET Framework
Available since 3.0
Return to top