NatsMessage Class
Definition
- Namespace
- Savvyio.Extensions.NATS
- Assemblies
- Savvyio.Extensions.NATS.dll
Provides a base class for NATS message operations, supporting asynchronous disposal and message serialization.
public abstract class NatsMessage : AsyncDisposable, IDisposable, IAsyncDisposable, IHealthCheckProvider<INatsConnection>
- Inheritance
-
objectNatsMessage
- Implements
-
IHealthCheckProvider<INatsConnection>
- Derived
- Inherited Members
Constructors
| Name | Description |
|---|---|
| NatsMessage(IMarshaller, NatsMessageOptions) | Initializes a new instance of the NatsMessage class with the specified marshaller and options. |
Properties
| Name | Description |
|---|---|
| Marshaller | Gets the marshaller provided by the constructor for serializing and deserializing messages. |
| NatsClient | Gets the NATS client provided by the constructor for communication with the NATS server. |
Methods
| Name | Description |
|---|---|
| GetHealthCheckTarget() | Gets the NATS.Client.Core.INatsConnection instance used for probing the health status of the NATS server. |
| OnDisposeManagedResourcesAsync() | Releases the managed resources used by the NatsMessage asynchronously. |