Show / Hide Table of Contents

Class TextMessage

Represents text message.

Inheritance
object
TextMessage
Implements
IMessage
IDataTransferObject
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public class TextMessage : IMessage, IDataTransferObject

Constructors

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

View Source

Content

The message content.

Declaration
public string Content { get; }
Property Value
Type Description
string
View Source

Length

Gets content length, in bytes.

Declaration
public int Length { get; }
Property Value
Type Description
int
View Source

Name

Gets name of this message.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

Type

MIME type of the message.

Declaration
public ContentType Type { get; }
Property Value
Type Description
ContentType

Implements

IMessage
IDataTransferObject

Extension Methods

Messenger.ReadAsTextAsync(IMessage, CancellationToken)
BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾