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

Definition

Sends a message-based request.

Overloads

IRequestChannel.Request(Message)

Sends a message-based request and returns the correlated message-based response.

IRequestChannel.Request(Message, TimeSpan)

Sends a message-based request and returns the correlated message-based response within a specified interval of time.

IRequestChannel.Request(Message)

Source:
ClientBase.cs
Source:
ClientBase.cs

Sends a message-based request and returns the correlated message-based response.

C#
System.ServiceModel.Channels.Message IRequestChannel.Request(System.ServiceModel.Channels.Message message);

Parameters

message
Message

The request message to be transmitted.

Returns

The message received in response to the request.

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.Request(Message, TimeSpan)

Source:
ClientBase.cs
Source:
ClientBase.cs

Sends a message-based request and returns the correlated message-based response within a specified interval of time.

C#
System.ServiceModel.Channels.Message IRequestChannel.Request(System.ServiceModel.Channels.Message message, TimeSpan timeout);

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.

Returns

The message received in response to the request.

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