4 instantiations of NatsClientSettings
Aspire.NATS.Net (1)
AspireNatsClientExtensions.cs (1)
65
NatsClientSettings 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>
34
public 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>
53
public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<
NatsClientSettings
>? configureSettings = null, Func<NatsOpts, NatsOpts>? configureOptions = null)
61
private static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, object? serviceKey, Action<
NatsClientSettings
>? configureSettings, Func<NatsOpts, NatsOpts>? configureOptions)
65
NatsClientSettings
settings = new();
AssemblyInfo.cs (1)
7
[assembly: ConfigurationSchema("Aspire:NATS:Net", typeof(
NatsClientSettings
))]
Aspire.NATS.Net.Tests (6)
AspireNatsClientExtensionsTests.cs (1)
97
void SetConnectionString(
NatsClientSettings
settings) => settings.ConnectionString = _connectionString;
ConformanceTests.cs (5)
14
public class ConformanceTests : ConformanceTests<INatsConnection,
NatsClientSettings
>, IClassFixture<NatsContainerFixture>
39
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
NatsClientSettings
>? configure = null, string? key = null)
65
protected override void SetHealthCheck(
NatsClientSettings
options, bool enabled)
68
protected override void SetTracing(
NatsClientSettings
options, bool enabled)
71
protected override void SetMetrics(
NatsClientSettings
options, bool enabled)