Show / Hide Table of Contents

Interface IMessage

Represents message that can be transferred between cluster nodes.

Inherited Members
IDataTransferObject.WriteToAsync<TWriter>(TWriter, CancellationToken)
IDataTransferObject.TransformAsync<TResult, TTransformation>(Stream, TTransformation, bool, Memory<byte>, CancellationToken)
IDataTransferObject.TransformAsync<TResult, TTransformation>(Stream, TTransformation, bool, MemoryAllocator<byte>, CancellationToken)
IDataTransferObject.TransformAsync<TResult, TTransformation>(Stream, TTransformation, bool, CancellationToken)
IDataTransferObject.TransformAsync<TResult, TTransformation>(PipeReader, TTransformation, CancellationToken)
IDataTransferObject.TransformAsync<TResult, TTransformation>(TTransformation, CancellationToken)
IDataTransferObject.TryGetMemory(out ReadOnlyMemory<byte>)
IDataTransferObject.Empty
IDataTransferObject.IsReusable
IDataTransferObject.Length
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface IMessage : IDataTransferObject
Remarks

Message is a low-level abstraction representing logical protocol-independent transport unit used for communication between nodes. This interface should not be implemented by entities at higher level of abstraction such as Business Layer. It is similar to Data Transfer Object.

Properties

View Source

Name

Gets name of the message.

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

Type

MIME type of the message.

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

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Messenger.ReadAsTextAsync(IMessage, CancellationToken)

See Also

TextMessage
StreamMessage
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾