Class Setup
Namespace: Apollo.Providers.NATS
Assembly: Apollo.Providers.NATS.dll
public static class Setup
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
AddNatsProvider(IApolloBuilder, Func<NatsOpts, NatsOpts>)
Adds the NATS provider to the Apollo builder.
public static IApolloBuilder AddNatsProvider(this IApolloBuilder builder, Func<NatsOpts, NatsOpts> configureOptions)
Parameters
builder
IApolloBuilder
The Apollo builder.
configureOptions
Func<NatsOpts, NatsOpts>
The configuration options.
Returns
The builder instance.
Remarks
This method will add a NATS client to the service collection.