Jaa


AppServiceConnection.SendStatelessMessageAsync Method

Definition

Opens an app service connection, sends a single message, waits for a single response, and then closes the connection.

public:
 static IAsyncOperation<StatelessAppServiceResponse ^> ^ SendStatelessMessageAsync(AppServiceConnection ^ connection, RemoteSystemConnectionRequest ^ connectionRequest, ValueSet ^ message);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StatelessAppServiceResponse> SendStatelessMessageAsync(AppServiceConnection const& connection, RemoteSystemConnectionRequest const& connectionRequest, ValueSet const& message);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StatelessAppServiceResponse> SendStatelessMessageAsync(AppServiceConnection connection, RemoteSystemConnectionRequest connectionRequest, ValueSet message);
function sendStatelessMessageAsync(connection, connectionRequest, message)
Public Shared Function SendStatelessMessageAsync (connection As AppServiceConnection, connectionRequest As RemoteSystemConnectionRequest, message As ValueSet) As IAsyncOperation(Of StatelessAppServiceResponse)

Parameters

connection
AppServiceConnection

The app service to connect to.

connectionRequest
RemoteSystemConnectionRequest

Specifies the connection preferences for the AppServiceConnection, such as transport preferences (cloud/proximal/any) as well as the target System.RemoteSystems object.

message
ValueSet

The message that you want to send.

Returns

An asynchronous operation to send the message that optionally returns a response message when complete.

Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

This API can optimize latency for remote app service scenarios which do not require state to be built up over several SendMessageAsync operations.

Applies to