AppServiceConnection.SendStatelessMessageAsync(AppServiceConnection, RemoteSystemConnectionRequest, ValueSet) AppServiceConnection.SendStatelessMessageAsync(AppServiceConnection, RemoteSystemConnectionRequest, ValueSet) AppServiceConnection.SendStatelessMessageAsync(AppServiceConnection, RemoteSystemConnectionRequest, ValueSet) AppServiceConnection.SendStatelessMessageAsync(AppServiceConnection, RemoteSystemConnectionRequest, ValueSet) AppServiceConnection.SendStatelessMessageAsync(AppServiceConnection, RemoteSystemConnectionRequest, ValueSet) 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)
static IAsyncOperation<StatelessAppServiceResponse> SendStatelessMessageAsync(AppServiceConnection connection, RemoteSystemConnectionRequest connectionRequest, ValueSet message) const;
public static IAsyncOperation<StatelessAppServiceResponse> SendStatelessMessageAsync(AppServiceConnection connection, RemoteSystemConnectionRequest connectionRequest, ValueSet message)
Public Shared Function SendStatelessMessageAsync(connection As AppServiceConnection, connectionRequest As RemoteSystemConnectionRequest, message As ValueSet) As IAsyncOperation(Of StatelessAppServiceResponse)
Windows.ApplicationModel.AppService.AppServiceConnection.sendStatelessMessageAsync(connection, connectionRequest, message).done( /* Your success and error handlers */ );

Parameters

connectionRequest
RemoteSystemConnectionRequest RemoteSystemConnectionRequest 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 ValueSet ValueSet

The message that you want to send.

Returns

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

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

Remarks

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