Show / Hide Table of Contents

Class JsonMessage<T>

Represents JSON-serializable message.

Inheritance
object
JsonMessage<T>
Implements
IMessage
IDataTransferObject
Inherited Members
object.GetType()
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 sealed class JsonMessage<T> : IMessage, IDataTransferObject where T : IJsonSerializable<T>
Type Parameters
Name Description
T

JSON-serializable type.

Constructors

View Source

JsonMessage()

Declaration
public JsonMessage()

Properties

View Source

Content

Gets the content of this message.

Declaration
public required T Content { get; init; }
Property Value
Type Description
T
View Source

Name

Gets the name of this message.

Declaration
public required string Name { get; init; }
Property Value
Type Description
string

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
☀
☾