ClientBase<TChannel>.ChannelBase<T>.IRequestChannel.BeginRequest Method

Definition

Begins an asynchronous operation to transmit a request message.

Overloads

IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange within a specified interval of time.

IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.

IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object)

Source:
ClientBase.cs
Source:
ClientBase.cs

Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange within a specified interval of time.

C#
IAsyncResult IRequestChannel.BeginRequest(System.ServiceModel.Channels.Message message, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

message
Message

The request message to be transmitted.

timeout
TimeSpan

The timespan that specifies the interval of time within which a response must be received.

callback
AsyncCallback

The AsyncCallback delegate that receives the notification of the completion of the asynchronous operation transmitting a request message.

state
Object

An object, specified by the application, that contains state information associated with the asynchronous operation transmitting a request message.

Returns

The IAsyncResult that references the asynchronous message transmission.

Implements

Applies to

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

IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

Source:
ClientBase.cs
Source:
ClientBase.cs

Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.

C#
IAsyncResult IRequestChannel.BeginRequest(System.ServiceModel.Channels.Message message, AsyncCallback callback, object state);

Parameters

message
Message

The request message to be transmitted.

callback
AsyncCallback

The AsyncCallback delegate that receives the notification of the completion of the asynchronous operation transmitting a request message.

state
Object

An object, specified by the application, that contains state information associated with the asynchronous operation transmitting a request message.

Returns

The IAsyncResult that references the asynchronous message transmission.

Implements

Applies to

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