DataSource.NET  8.0.13.562038-b0f3b66e
Caplin.DataSource.Messaging.Binary.IBinaryMessage Interface Reference

Interface for sending IBinaryMessage messages. More...

Inheritance diagram for Caplin.DataSource.Messaging.Binary.IBinaryMessage:
Caplin.DataSource.Messaging.IMessage

Properties

byte[] BinaryData [get, set]
 Get or set the binary data for the message. More...
 
string BinaryString [get]
 Gets the binary string from the message. More...
 
- Properties inherited from Caplin.DataSource.Messaging.IMessage
bool Image [get, set]
 Gets or sets a boolean value indicating whether this IMessage represents an image or an update. More...
 
string Subject [get]
 Gets the subject of this message. More...
 

Detailed Description

Interface for sending IBinaryMessage messages.

The example below demonstrates sending a Binary image message.

using System;
using System.Collections.Generic;
namespace DataSourceExamples.Messaging.Binary
{
class SendingABinaryMessage
{
void SendBinaryMessage(ICachingPublisher publisher, string subject)
{
byte[] binaryData = { 0, 1, 2, 3 };
// Create a binary message.
IBinaryMessage message = publisher.CachedMessageFactory.CreateBinaryMessage(subject, binaryData);
// Send the message to subscribed peers.
publisher.Publish(message);
}
}
}

Property Documentation

byte [] Caplin.DataSource.Messaging.Binary.IBinaryMessage.BinaryData
getset

Get or set the binary data for the message.

string Caplin.DataSource.Messaging.Binary.IBinaryMessage.BinaryString
get

Gets the binary string from the message.


Generated on Thu May 14 2026 09:48:27 for DataSource.NET