Show / Hide Table of Contents

Class TextMessage

Represents text message.

Inheritance
Object
TextMessage
Implements
IMessage
IDataTransferObject
Namespace: DotNext.Net.Cluster.Messaging
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

The message content.

Declaration
public string Content { get; }
Property Value
Type Description
String
| Improve this Doc View Source

Length

Gets content length, in bytes.

Declaration
public int Length { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Name

Gets name of this message.

Declaration
public string Name { get; }
Property Value
Type Description
String
| 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
Type Description
Task
| Improve this Doc View Source

IDataTransferObject.IsReusable

Declaration
bool IDataTransferObject.IsReusable { get; }
Returns
Type Description
Boolean
| Improve this Doc View Source

IDataTransferObject.Length

Declaration
long? IDataTransferObject.Length { get; }
Returns
Type Description
Nullable<Int64>

Implements

IMessage
IDataTransferObject

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX