AspireNatsClientExtensions
Class static net10.0
Extension methods for connecting NATS server with NATS client
namespace Microsoft.Extensions.Hosting;
public static class AspireNatsClientExtensions{ // ...} 13 members
Methods13
Section titled MethodsAddKeyedNatsClient(IHostApplicationBuilder, string)extensionAddKeyedNatsClient(IHostApplicationBuilder, string, Action<NatsClientSettings>)extensionAddKeyedNatsClient(IHostApplicationBuilder, string, Func<NatsOpts, NatsOpts>)extensionAddKeyedNatsClient(IHostApplicationBuilder, string, Func<IServiceProvider, NatsOpts, NatsOpts>)extensionAddKeyedNatsClient(IHostApplicationBuilder, string, Action<NatsClientSettings>, Func<NatsOpts, NatsOpts>)extensionAddKeyedNatsClient(IHostApplicationBuilder, string, Action<NatsClientSettings>, Func<IServiceProvider, NatsOpts, NatsOpts>)extension Registers
Core.INatsConnection as a keyed service for given name for connecting NATS server with NATS client. Configures health check and logging for the NATS client. AddNatsClient(IHostApplicationBuilder, string)extensionAddNatsClient(IHostApplicationBuilder, string, Action<NatsClientSettings>)extensionAddNatsClient(IHostApplicationBuilder, string, Func<NatsOpts, NatsOpts>)extensionAddNatsClient(IHostApplicationBuilder, string, Func<IServiceProvider, NatsOpts, NatsOpts>)extensionAddNatsClient(IHostApplicationBuilder, string, Action<NatsClientSettings>, Func<NatsOpts, NatsOpts>)extensionAddNatsClient(IHostApplicationBuilder, string, Action<NatsClientSettings>, Func<IServiceProvider, NatsOpts, NatsOpts>)extension Registers
Core.INatsConnection service for connecting NATS server with NATS client. Configures health check and logging for the NATS client. AddNatsJetStream(IHostApplicationBuilder)extension Registers
JetStream.INatsJSContext service for NATS JetStream operations.