IChannelListener.WaitForChannel Method (TimeSpan)


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

Waits for a channel to arrive.

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

bool WaitForChannel(
	TimeSpan timeout


Type: System.TimeSpan

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

Return Value

Type: System.Boolean

true if a channel arrived before the interval of time specified by the timeout; otherwise false.

.NET Framework
Available since 3.0
Return to top