4 instantiations of NatsClientSettings
Aspire.NATS.Net (1)
AspireNatsClientExtensions.cs (1)
65NatsClientSettings settings = new();
Aspire.NATS.Net.Tests (3)
ConfigurationTests.cs (3)
12=> Assert.Null(new NatsClientSettings().ConnectionString); 16=> Assert.False(new NatsClientSettings().DisableHealthChecks); 20=> Assert.False(new NatsClientSettings().DisableTracing);
13 references to NatsClientSettings
Aspire.NATS.Net (7)
AspireNatsClientExtensions.cs (6)
33/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="NatsClientSettings.ConnectionString"/> is not provided.</exception> 34public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<NatsClientSettings>? configureSettings = null, Func<NatsOpts, NatsOpts>? configureOptions = null) 52/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="NatsClientSettings.ConnectionString"/> is not provided.</exception> 53public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<NatsClientSettings>? configureSettings = null, Func<NatsOpts, NatsOpts>? configureOptions = null) 61private static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, object? serviceKey, Action<NatsClientSettings>? configureSettings, Func<NatsOpts, NatsOpts>? configureOptions) 65NatsClientSettings settings = new();
AssemblyInfo.cs (1)
7[assembly: ConfigurationSchema("Aspire:NATS:Net", typeof(NatsClientSettings))]
Aspire.NATS.Net.Tests (6)
AspireNatsClientExtensionsTests.cs (1)
97void SetConnectionString(NatsClientSettings settings) => settings.ConnectionString = _connectionString;
ConformanceTests.cs (5)
14public class ConformanceTests : ConformanceTests<INatsConnection, NatsClientSettings>, IClassFixture<NatsContainerFixture> 39protected override void RegisterComponent(HostApplicationBuilder builder, Action<NatsClientSettings>? configure = null, string? key = null) 65protected override void SetHealthCheck(NatsClientSettings options, bool enabled) 68protected override void SetTracing(NatsClientSettings options, bool enabled) 71protected override void SetMetrics(NatsClientSettings options, bool enabled)