IDuplexSession.BeginCloseOutputSession Method

Definition

Begins an asynchronous operation to terminate the outbound session.

Overloads

BeginCloseOutputSession(AsyncCallback, Object)

Begins an asynchronous operation to terminate the outbound session.

BeginCloseOutputSession(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete.

BeginCloseOutputSession(AsyncCallback, Object)

Source:
IDuplexSession.cs
Source:
IDuplexSession.cs

Begins an asynchronous operation to terminate the outbound session.

public IAsyncResult BeginCloseOutputSession (AsyncCallback callback, object state);

Parameters

callback
AsyncCallback

The AsyncCallback delegate.

state
Object

An object that contains state information for this request.

Returns

The IAsyncResult that references the asynchronous outbound session termination.

Remarks

Terminating the outbound session does not affect the incoming session and so makes no statement about the ability to receive messages on the session associated with the input channel. This operation must complete within a default interval of time.

Applies to

.NET 8 (package-provided) and other versions
Product Versions
.NET Core 1.0, Core 1.1, 8 (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

BeginCloseOutputSession(TimeSpan, AsyncCallback, Object)

Source:
IDuplexSession.cs
Source:
IDuplexSession.cs

Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete.

public IAsyncResult BeginCloseOutputSession (TimeSpan timeout, AsyncCallback callback, object state);

Parameters

timeout
TimeSpan

The TimeSpan that specifies the interval of time within which the operation must complete.

callback
AsyncCallback

The AsyncCallback delegate.

state
Object

An object that contains state information for this request.

Returns

The IAsyncResult that references the asynchronous outbound session termination.

Remarks

Terminating the outbound session does not affect the incoming session and so makes no statement about the ability to receive messages on the session associated with the input channel.

Applies to

.NET 8 (package-provided) and other versions
Product Versions
.NET Core 1.0, Core 1.1, 8 (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