Class TextMessage
Assembly: DotNext.Net.Cluster.dll
Syntax
public class TextMessage : object, IMessage, IDataTransferObject
Constructors
|
Improve this Doc
View Source
TextMessage(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 Source
Content
Declaration
public string Content { get; }
Property Value
|
Improve this Doc
View Source
Length
Gets content length, in bytes.
Declaration
public int Length { get; }
Property Value
|
Improve this Doc
View Source
Name
Gets name of this message.
Declaration
public string Name { get; }
Property Value
|
Improve this Doc
View Source
Type
MIME type of the message.
Declaration
public ContentType Type { get; }
Property Value
| Type |
Description |
| ContentType |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IDataTransferObject.CopyToAsync(PipeWriter, CancellationToken)
Declaration
ValueTask IDataTransferObject.CopyToAsync(PipeWriter output, CancellationToken token)
Parameters
| Type |
Name |
Description |
| PipeWriter |
output |
|
| CancellationToken |
token |
|
Returns
| Type |
Description |
| ValueTask |
|
|
Improve this Doc
View Source
IDataTransferObject.CopyToAsync(Stream, CancellationToken)
Declaration
Task IDataTransferObject.CopyToAsync(Stream output, CancellationToken token)
Parameters
| Type |
Name |
Description |
| Stream |
output |
|
| CancellationToken |
token |
|
Returns
|
Improve this Doc
View Source
IDataTransferObject.IsReusable
Declaration
bool IDataTransferObject.IsReusable { get; }
Returns
|
Improve this Doc
View Source
IDataTransferObject.Length
Declaration
long? IDataTransferObject.Length { get; }
Returns
Implements
Extension Methods