Table of Contents

Interface IMessageSender

Namespace
Scaleout.Streaming.DigitalTwin.Core
Assembly
ScaleOut.Streaming.DigitalTwin.Core.dll

Interface that must be implemented by a message sender class for sending messages/events to a digital twin.

public interface IMessageSender

Properties

SourceAppId

Application namespace used to identify the message source (i.e., a data source connector or a digital twin object).

uint SourceAppId { get; }

Property Value

uint

Methods

Send(string, string, byte[])

Sends a serialized message to a digital twin object located in the data grid or IoT device that a digital twin represents.

SendingResult Send(string digitalTwinId, string messageInfo, byte[] message)

Parameters

digitalTwinId string

Digital twin identifier.

messageInfo string

JSON-encoded message info specifying the data source Id, target, and source digital twin model types.

message byte[]

The serialized JSON-encoded event message to send.

Returns

SendingResult

Handled when message was successfully sent, NotHandled otherwise.

Send(string, string, IEnumerable<byte[]>)

Sends serialized messages to a digital twin object located in the data grid or IoT device that a digital twin represents.

SendingResult Send(string digitalTwinId, string messageInfo, IEnumerable<byte[]> messages)

Parameters

digitalTwinId string

Digital twin identifier.

messageInfo string

JSON-encoded message info specifying the data source Id, target, and source digital twin model types.

messages IEnumerable<byte[]>

The list of serialized JSON-encoded event messages to send.

Returns

SendingResult

Handled when message was successfully sent, NotHandled otherwise.