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