Share via


NatsBuilderExtensions Class

Definition

Provides extension methods for adding NATS resources to the application model.

public static class NatsBuilderExtensions
type NatsBuilderExtensions = class
Public Module NatsBuilderExtensions
Inheritance
NatsBuilderExtensions

Methods

AddNats(IDistributedApplicationBuilder, String, Nullable<Int32>)

Adds a NATS server resource to the application model. A container is used for local development.

WithDataBindMount(IResourceBuilder<NatsServerResource>, String, Boolean)

Adds a bind mount for the data folder to a NATS container resource.

WithDataVolume(IResourceBuilder<NatsServerResource>, String, Boolean)

Adds a named volume for the data folder to a NATS container resource.

WithJetStream(IResourceBuilder<NatsServerResource>)

Adds JetStream support to the NATS server resource.

WithJetStream(IResourceBuilder<NatsServerResource>, String)
Obsolete.

Adds JetStream support to the NATS server resource.

Applies to