Class TextMessage
Represents text message.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public class TextMessage : IMessage, IDataTransferObject
Constructors
| Edit this page 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
| Edit this page 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 |
---|---|
int |
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 |