4 instantiations of NatsClientSettings
Aspire.NATS.Net (1)
AspireNatsClientExtensions.cs (1)
116
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);
28 references to NatsClientSettings
Aspire.NATS.Net (21)
AspireNatsClientExtensions.cs (20)
24
/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
28
/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
29
public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<
NatsClientSettings
>? configureSettings)
32
/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
36
/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
40
/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
41
public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<
NatsClientSettings
>? configureSettings, Func<NatsOpts, NatsOpts>? configureOptions)
53
/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="
NatsClientSettings
.ConnectionString"/> is not provided.</exception>
54
public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<
NatsClientSettings
>? configureSettings, Func<IServiceProvider, NatsOpts, NatsOpts>? configureOptions)
59
/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
66
/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
67
public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<
NatsClientSettings
>? configureSettings)
73
/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
80
/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
87
/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{
NatsClientSettings
}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
88
public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<
NatsClientSettings
>? configureSettings, Func<NatsOpts, NatsOpts>? configureOptions)
104
/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="
NatsClientSettings
.ConnectionString"/> is not provided.</exception>
105
public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<
NatsClientSettings
>? configureSettings, Func<IServiceProvider, NatsOpts, NatsOpts>? configureOptions)
111
private static void AddNatsClientInternal(this IHostApplicationBuilder builder, string connectionName, object? serviceKey, Action<
NatsClientSettings
>? configureSettings, Func<IServiceProvider, NatsOpts, NatsOpts>? configureOptions)
116
NatsClientSettings
settings = new();
AssemblyInfo.cs (1)
7
[assembly: ConfigurationSchema("Aspire:NATS:Net", typeof(
NatsClientSettings
))]
Aspire.NATS.Net.Tests (7)
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)
NatsClientPublicApiTests.cs (1)
164
void ConfigureSettings(
NatsClientSettings
_)