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