Click or drag to resize

StanMsgTMessage Class

A NATS message encapsulating a subject, optional reply payload, and subscription information, sent or received by the client application.
Inheritance Hierarchy
SystemObject
  NATS.ClientStanMsgTMessage

Namespace:  NATS.Client
Assembly:  Neon.Nats (in Neon.Nats.dll) Version: 2.2.0
Syntax
public class StanMsg<TMessage>
where TMessage : class, new(), IRoundtripData

Type Parameters

TMessage
The request message type.

The StanMsgTMessage type exposes the following members.

Properties
  NameDescription
Public propertyData
Returns the message payload.
Public propertyRedelivered
The redelivered property if true if this message has been redelivered, false otherwise.
Public propertySequence
Gets the sequence number of a message.
Public propertySubject
Gets the subject of the message.
Public propertySubscription
Gets the subscription this message was received from.
Public propertyTime
Returns the message time stamp as Unix nanotime.
Public propertyTimeStamp
Returns the message time stamp as a DateTime (UTC).
Top
Methods
  NameDescription
Public methodAck
Acknowledge a message.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also