Class BinaryMessage<T>
Represents binary message that encapsulated value of blittable type.
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public class BinaryMessage<T> : BinaryTransferObject<T>, IMessage, IDataTransferObject where T : struct
Type Parameters
Name | Description |
---|---|
T | Blittable type representing binary content of message payload. |
Constructors
| Improve this Doc View SourceBinaryMessage(String, ContentType)
Initializes a new binary message.
Declaration
public BinaryMessage(string name, ContentType type)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the message. |
ContentType | type | Media type of the message content. |
Fields
| Improve this Doc View SourceReader
Gets the reader of the binary message.
Declaration
public static readonly MessageReader<T> Reader
Field Value
Type | Description |
---|---|
MessageReader<T> |
Properties
| Improve this Doc View SourceName
Gets name of the message.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Type
Gets media type of the message.
Declaration
public ContentType Type { get; }
Property Value
Type | Description |
---|---|
ContentType |