Table of Contents

NatsEventBus Constructor

Definition

NatsEventBus(IMarshaller, NatsEventBusOptions<TMarker>)

Initializes a new instance of the NatsEventBus class.

public NatsEventBus(IMarshaller marshaller, NatsEventBusOptions<TMarker> options)

Parameters

marshaller IMarshaller

The marshaller used for serializing and deserializing messages.

options NatsEventBusOptions<TMarker>

The options used to configure the NATS event bus.

Exceptions

ArgumentNullException

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

ArgumentException

options are not in a valid state.