5 instantiations of MySqlConnectorSettings
Aspire.MySqlConnector (1)
AspireMySqlConnectorExtensions.cs (1)
58MySqlConnectorSettings 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> 32public 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> 46public static void AddKeyedMySqlDataSource(this IHostApplicationBuilder builder, string name, Action<MySqlConnectorSettings>? configureSettings = null) 54Action<MySqlConnectorSettings>? configureSettings, string connectionName, object? serviceKey) 58MySqlConnectorSettings settings = new(); 107private 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)
61void SetConnectionString(MySqlConnectorSettings settings) => settings.ConnectionString = ConnectionString;
ConformanceTests.cs (5)
16public class ConformanceTests : ConformanceTests<MySqlDataSource, MySqlConnectorSettings>, IClassFixture<MySqlContainerFixture> 72protected override void RegisterComponent(HostApplicationBuilder builder, Action<MySqlConnectorSettings>? configure = null, string? key = null) 84protected override void SetHealthCheck(MySqlConnectorSettings options, bool enabled) 87protected override void SetTracing(MySqlConnectorSettings options, bool enabled) 90protected override void SetMetrics(MySqlConnectorSettings options, bool enabled)