NatsMessage Constructor
Definition
- Namespace
- Savvyio.Extensions.NATS
- Assemblies
- Savvyio.Extensions.NATS.dll
NatsMessage(IMarshaller, NatsMessageOptions)
Initializes a new instance of the NatsMessage class with the specified marshaller and options.
protected NatsMessage(IMarshaller marshaller, NatsMessageOptions options)
Parameters
marshallerIMarshallerThe marshaller used for serializing and deserializing messages.
optionsNatsMessageOptionsThe configuration options for the NATS message.
Exceptions
- ArgumentNullException
marshallercannot be null - or -optionscannot be null.- ArgumentException
optionsare not in a valid state.