Class NatsCommandQueue<TMarker>
- Namespace
- Savvyio.Extensions.DependencyInjection.NATS.Commands
- Assembly
- Savvyio.Extensions.DependencyInjection.NATS.dll
Provides a default implementation of the NatsMessage class for messages holding an ICommand implementation.
public class NatsCommandQueue<TMarker> : NatsCommandQueue, IDisposable, IAsyncDisposable, IHealthCheckProvider<INatsConnection>, IPointToPointChannel<ICommand, TMarker>, IPointToPointChannel<ICommand>, ISender<ICommand, TMarker>, ISender<ICommand>, IReceiver<ICommand, TMarker>, IReceiver<ICommand>, IDependencyInjectionMarker<TMarker>
Type Parameters
TMarker
- Inheritance
-
NatsCommandQueue<TMarker>
- Implements
-
IHealthCheckProvider<INatsConnection>IPointToPointChannel<ICommand, TMarker>IDependencyInjectionMarker<TMarker>
- Inherited Members
Constructors
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.
See Also
NatsCommandQueue<TMarker>
IPointToPointChannel<TRequest, TMarker>