RemoteSystemSessionMessageChannel RemoteSystemSessionMessageChannel RemoteSystemSessionMessageChannel RemoteSystemSessionMessageChannel RemoteSystemSessionMessageChannel Class

Definition

Handles a dedicated data transfer channel within a remote session. This class owns the functionality for both sending and receiving.

public : sealed class RemoteSystemSessionMessageChannel
struct winrt::Windows::System::RemoteSystems::RemoteSystemSessionMessageChannel
public sealed class RemoteSystemSessionMessageChannel
Public NotInheritable Class RemoteSystemSessionMessageChannel
var remoteSystemSessionMessageChannel = new remoteSystemSessionMessageChannel(session, channelName, reliability);
Attributes

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
remoteSystem

Remarks

Messages are sent and received over this channel asynchronously, so the chronological ordering of messages is not guaranteed.

Messages are delivered through a hub and spoke model: any message that a client sends to a participant or a set of participants is internally sent to the host device first, which then sends it to the target participant or participants.

Constructors

RemoteSystemSessionMessageChannel(RemoteSystemSession, String) RemoteSystemSessionMessageChannel(RemoteSystemSession, String) RemoteSystemSessionMessageChannel(RemoteSystemSession, String) RemoteSystemSessionMessageChannel(RemoteSystemSession, String) RemoteSystemSessionMessageChannel(RemoteSystemSession, String)

Initializes an instance of RemoteSystemSessionMessageChannel to manage messaging for a given remote session

RemoteSystemSessionMessageChannel(RemoteSystemSession, String, RemoteSystemSessionMessageChannelReliability) RemoteSystemSessionMessageChannel(RemoteSystemSession, String, RemoteSystemSessionMessageChannelReliability) RemoteSystemSessionMessageChannel(RemoteSystemSession, String, RemoteSystemSessionMessageChannelReliability) RemoteSystemSessionMessageChannel(RemoteSystemSession, String, RemoteSystemSessionMessageChannelReliability) RemoteSystemSessionMessageChannel(RemoteSystemSession, String, RemoteSystemSessionMessageChannelReliability)

Initializes an instance of RemoteSystemSessionMessageChannel to manage messaging for a given remote session, specifying the reliability type of the channel.

Properties

Session Session Session Session Session

Gets the remote session to which this messaging channel corresponds.

Methods

BroadcastValueSetAsync(ValueSet) BroadcastValueSetAsync(ValueSet) BroadcastValueSetAsync(ValueSet) BroadcastValueSetAsync(ValueSet) BroadcastValueSetAsync(ValueSet)

Sends a message to all other participants in this remote session messaging channel.

SendValueSetAsync(ValueSet, RemoteSystemSessionParticipant) SendValueSetAsync(ValueSet, RemoteSystemSessionParticipant) SendValueSetAsync(ValueSet, RemoteSystemSessionParticipant) SendValueSetAsync(ValueSet, RemoteSystemSessionParticipant) SendValueSetAsync(ValueSet, RemoteSystemSessionParticipant)

Sends a message to a participant in this remote session messaging channel.

SendValueSetToParticipantsAsync(ValueSet, IIterable<RemoteSystemSessionParticipant>) SendValueSetToParticipantsAsync(ValueSet, IIterable<RemoteSystemSessionParticipant>) SendValueSetToParticipantsAsync(ValueSet, IIterable<RemoteSystemSessionParticipant>) SendValueSetToParticipantsAsync(ValueSet, IIterable<RemoteSystemSessionParticipant>) SendValueSetToParticipantsAsync(ValueSet, IIterable<RemoteSystemSessionParticipant>)

Sends a message to a specified set participants in this remote session messaging channel.

Events

ValueSetReceived ValueSetReceived ValueSetReceived ValueSetReceived ValueSetReceived

Raised when a message (in the form of a key-value pair) is received by the channel. The contents of the message are contained by the RemoteSystemSessionValueSetReceivedEventArgs object that is passed in.