Class NatsEventBus.ReceivedNatsMessage
- Namespace
- Savvyio.Extensions.NATS.EventDriven
- Assembly
- Savvyio.Extensions.NATS.dll
Represents a NATS message received from a subscription.
protected sealed class NatsEventBus.ReceivedNatsMessage
- Inheritance
-
NatsEventBus.ReceivedNatsMessage
Constructors
ReceivedNatsMessage(NatsHeaders, string)
Initializes a new instance of the NatsEventBus.ReceivedNatsMessage class.
public ReceivedNatsMessage(NatsHeaders headers, string data)
Parameters
headersNatsHeadersThe NATS message headers.
datastringThe NATS message payload.
Properties
Data
Gets the NATS message payload.
public string Data { get; }
Property Value
Headers
Gets the NATS message headers.
public NatsHeaders Headers { get; }
Property Value
- NatsHeaders