Table of Contents

NatsEventBus Constructor

Definition

Namespace
Savvyio.Extensions.NATS.EventDriven
Assemblies
Savvyio.Extensions.NATS.dll
Source
src/Savvyio.Extensions.NATS/EventDriven/NatsEventBus.cs

NatsEventBus(IMarshaller, NatsEventBusOptions)

Initializes a new instance of the NatsEventBus class.

public NatsEventBus(IMarshaller marshaller, NatsEventBusOptions options)

Parameters

marshaller IMarshaller

The marshaller used for serializing and deserializing messages.

options NatsEventBusOptions

The NatsEventBusOptions used to configure this instance.

Exceptions

ArgumentNullException

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

ArgumentException

options are not in a valid state.