NatsEventBus Constructor
Definition
- Namespace
- Savvyio.Extensions.NATS.EventDriven
- Assemblies
- Savvyio.Extensions.NATS.dll
NatsEventBus(IMarshaller, NatsEventBusOptions)
Initializes a new instance of the NatsEventBus class.
public NatsEventBus(IMarshaller marshaller, NatsEventBusOptions options)
Parameters
marshallerIMarshallerThe marshaller used for serializing and deserializing messages.
optionsNatsEventBusOptionsThe NatsEventBusOptions used to configure this instance.
Exceptions
- ArgumentNullException
marshallercannot be null - or -optionscannot be null.- ArgumentException
optionsare not in a valid state.