ClientBase<TChannel>.ICommunicationObject.BeginClose Method

Definition

Begins an asynchronous operation to close the ClientBase<TChannel>.

Overloads

ICommunicationObject.BeginClose(AsyncCallback, Object)

Begins an asynchronous operation to close the ClientBase<TChannel>.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to close the ClientBase<TChannel> with a specified timeout.

ICommunicationObject.BeginClose(AsyncCallback, Object)

Source:
ClientBase.cs
Source:
ClientBase.cs
Source:
netstandard.cs

Begins an asynchronous operation to close the ClientBase<TChannel>.

C#
IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state);

Parameters

callback
AsyncCallback

The method that receives the callback on completion.

state
Object

The state data.

Returns

The IAsyncResult that references the asynchronous close operation.

Implements

Remarks

For more information, see System.ServiceModel.Channels.CommunicationObject.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

Source:
ClientBase.cs
Source:
ClientBase.cs
Source:
netstandard.cs

Begins an asynchronous operation to close the ClientBase<TChannel> with a specified timeout.

C#
IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state);

Parameters

timeout
TimeSpan

The period within which the call must complete.

callback
AsyncCallback

The callback object invoked when the operation completes.

state
Object

The state data.

Returns

The IAsyncResult that references the asynchronous begin close operation.

Implements

Remarks

For more information, see System.ServiceModel.Channels.CommunicationObject.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0