Class NatsMessageOptions
- Namespace
- Savvyio.Extensions.NATS
- Assembly
- Savvyio.Extensions.NATS.dll
Configuration options that is related to NATS.
public class NatsMessageOptions : IValidatableParameterObject, IParameterObject
- Inheritance
-
NatsMessageOptions
- Implements
- Derived
Constructors
NatsMessageOptions()
Initializes a new instance of the NatsMessageOptions class with default values.
public NatsMessageOptions()
Remarks
The following table shows the initial property values for an instance of NatsMessageOptions.
| Property | Initial Value |
|---|---|
| NatsUrl | new Uri("nats://127.0.0.1:4222") |
| Subject | null |
Properties
NatsUrl
Gets or sets the URI of the NATS server.
public Uri NatsUrl { get; set; }
Property Value
Subject
Gets or sets the subject to publish or subscribe to in NATS.
public string Subject { get; set; }
Property Value
Methods
ValidateOptions()
Validates the current options and throws an exception if the state is invalid.
public virtual void ValidateOptions()