Table of Contents

NatsMessage Constructor

Definition

Namespace
Savvyio.Extensions.NATS
Assemblies
Savvyio.Extensions.NATS.dll
Source
src/Savvyio.Extensions.NATS/NatsMessage.cs

NatsMessage(IMarshaller, NatsMessageOptions)

Initializes a new instance of the NatsMessage class with the specified marshaller and options.

protected NatsMessage(IMarshaller marshaller, NatsMessageOptions options)

Parameters

marshaller IMarshaller

The marshaller used for serializing and deserializing messages.

options NatsMessageOptions

The configuration options for the NATS message.

Exceptions

ArgumentNullException

marshaller cannot be null - or - options cannot be null.

ArgumentException

options are not in a valid state.