Class TextMessage
Represents text message.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public class TextMessage : IMessage, IDataTransferObject
Constructors
| Improve this Doc View SourceTextMessage(String, String)
Initializes a new text message.
Declaration
public TextMessage(string value, string name)
Parameters
Type | Name | Description |
---|---|---|
String | value | The message content. |
String | name | The name of the message. |
Properties
| Improve this Doc View SourceContent
The message content.
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
String |
Length
Gets content length, in bytes.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
Int32 |
Name
Gets name of this message.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Type
MIME type of the message.
Declaration
public ContentType Type { get; }
Property Value
Type | Description |
---|---|
ContentType |