A StanMsg object is a received NATS streaming message.
◆ StanMsg()
STAN.Client.StanMsg.StanMsg |
( |
byte [] |
data, |
|
|
bool |
redelivered, |
|
|
string |
subject, |
|
|
long |
timestamp, |
|
|
ulong |
sequence, |
|
|
IStanSubscription |
subscription |
|
) |
| |
Constructor for generating a StanMsg object. Used only for application unit testing.
Objects of this type are normally generated internally by the NATS streaming client. This constructor has been provided to facilitate application unit testing.
- Parameters
-
data | The message payload. |
redelivered | True if the message may have been redelivered. |
subject | Subject of the message |
timestamp | Message timestamp, nanoseconds since epoch (1/1/1970) |
sequence | Sequence number of the message. |
subscription | Subscription of the message. Must be a valid streaming subscription or null. |
◆ Ack()
void STAN.Client.StanMsg.Ack |
( |
| ) |
|
◆ Data
byte [] STAN.Client.StanMsg.Data |
|
get |
Get the data field (payload) of a message.
◆ Redelivered
bool STAN.Client.StanMsg.Redelivered |
|
get |
The redelivered property if true if this message has been redelivered, false otherwise.
◆ Sequence
ulong STAN.Client.StanMsg.Sequence |
|
get |
Gets the sequence number of a message.
◆ Subject
string STAN.Client.StanMsg.Subject |
|
get |
Gets the subject of the message.
◆ Subscription
Gets the subscription this message was received upon.
◆ Time
long STAN.Client.StanMsg.Time |
|
get |
Get the time stamp of the message represeneted as Unix nanotime.
◆ TimeStamp
DateTime STAN.Client.StanMsg.TimeStamp |
|
get |
Get the timestamp of the message.
The documentation for this class was generated from the following file: