diff --git a/src/Uno.Extensions.Configuration/ServiceCollectionExtensions.cs b/src/Uno.Extensions.Configuration/ServiceCollectionExtensions.cs index 33d5b37919..d349b5ff26 100644 --- a/src/Uno.Extensions.Configuration/ServiceCollectionExtensions.cs +++ b/src/Uno.Extensions.Configuration/ServiceCollectionExtensions.cs @@ -1,7 +1,4 @@ -using System.Collections.Immutable; -using System.ComponentModel; - -namespace Uno.Extensions.Configuration; +namespace Uno.Extensions.Configuration; /// /// Extension methods for . @@ -27,13 +24,14 @@ public static IServiceCollection ConfigureAsWritable( string? name = "") where T : class, new() { + var sectionName = name != typeof(T).Name ? name : default; return services // Note - we've replaced the Configure method call with the three calls subsequent three calls so that // we can use a local copy of ConfigurationBinder that handles ImmutableList //.Configure(section) .AddOptions() - .AddSingleton>(new ConfigurationChangeTokenSource(name ?? Options.DefaultName, section)) - .AddSingleton>(new Uno.Extensions.Configuration.Internal.NamedConfigureFromConfigurationOptions(name ?? Options.DefaultName, section, _ => { })) + .AddSingleton>(new ConfigurationChangeTokenSource(sectionName ?? Options.DefaultName, section)) + .AddSingleton>(new Uno.Extensions.Configuration.Internal.NamedConfigureFromConfigurationOptions(sectionName ?? Options.DefaultName, section, _ => { })) .AddTransient>(provider => { diff --git a/testing/TestHarness/TestHarness.Shared/Ext/Authentication/Oidc/OidcAuthenticationLoginPage.xaml b/testing/TestHarness/TestHarness.Shared/Ext/Authentication/Oidc/OidcAuthenticationLoginPage.xaml index bfd61f44af..90c2fdd138 100644 --- a/testing/TestHarness/TestHarness.Shared/Ext/Authentication/Oidc/OidcAuthenticationLoginPage.xaml +++ b/testing/TestHarness/TestHarness.Shared/Ext/Authentication/Oidc/OidcAuthenticationLoginPage.xaml @@ -22,6 +22,10 @@ + + + +