Class BinaryMessage
Represents binary message.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public class BinaryMessage : BinaryTransferObject, IMessage, IDataTransferObject
  Constructors
| Improve this Doc View SourceBinaryMessage(ReadOnlyMemory<Byte>, String, ContentType)
Initializes a new binary message.
Declaration
public BinaryMessage(ReadOnlyMemory<byte> content, string name, ContentType type = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ReadOnlyMemory<Byte> | content | The content of the message.  | 
      
| String | name | The name of the message.  | 
      
| ContentType | type | Media type of the message content.  | 
      
BinaryMessage(ReadOnlySequence<Byte>, String, ContentType)
Initializes a new binary message.
Declaration
public BinaryMessage(ReadOnlySequence<byte> content, string name, ContentType type = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ReadOnlySequence<Byte> | content | The content of the message.  | 
      
| String | name | The name of the message.  | 
      
| ContentType | type | Media type of the message content.  | 
      
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 |