5 instantiations of MySqlConnectorSettings
Aspire.MySqlConnector (1)
AspireMySqlConnectorExtensions.cs (1)
58
MySqlConnectorSettings settings =
new
();
Aspire.MySqlConnector.Tests (4)
ConfigurationTests.cs (4)
12
=> Assert.Null(new
MySqlConnectorSettings
().ConnectionString);
16
=> Assert.False(new
MySqlConnectorSettings
().DisableHealthChecks);
20
=> Assert.False(new
MySqlConnectorSettings
().DisableTracing);
24
=> Assert.False(new
MySqlConnectorSettings
().DisableMetrics);
14 references to MySqlConnectorSettings
Aspire.MySqlConnector (8)
AspireMySqlConnectorExtensions.cs (7)
31
/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="
MySqlConnectorSettings
.ConnectionString"/> is not provided.</exception>
32
public static void AddMySqlDataSource(this IHostApplicationBuilder builder, string connectionName, Action<
MySqlConnectorSettings
>? configureSettings = null)
45
/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="
MySqlConnectorSettings
.ConnectionString"/> is not provided.</exception>
46
public static void AddKeyedMySqlDataSource(this IHostApplicationBuilder builder, string name, Action<
MySqlConnectorSettings
>? configureSettings = null)
54
Action<
MySqlConnectorSettings
>? configureSettings, string connectionName, object? serviceKey)
58
MySqlConnectorSettings
settings = new();
107
private static void RegisterMySqlServices(this IHostApplicationBuilder builder,
MySqlConnectorSettings
settings, string connectionName, object? serviceKey)
AssemblyInfo.cs (1)
7
[assembly: ConfigurationSchema("Aspire:MySqlConnector", typeof(
MySqlConnectorSettings
))]
Aspire.MySqlConnector.Tests (6)
AspireMySqlConnectorExtensionsTests.cs (1)
61
void SetConnectionString(
MySqlConnectorSettings
settings) => settings.ConnectionString = ConnectionString;
ConformanceTests.cs (5)
16
public class ConformanceTests : ConformanceTests<MySqlDataSource,
MySqlConnectorSettings
>, IClassFixture<MySqlContainerFixture>
72
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
MySqlConnectorSettings
>? configure = null, string? key = null)
84
protected override void SetHealthCheck(
MySqlConnectorSettings
options, bool enabled)
87
protected override void SetTracing(
MySqlConnectorSettings
options, bool enabled)
90
protected override void SetMetrics(
MySqlConnectorSettings
options, bool enabled)