Skip to content

Commit b855e84

Browse files
committed
fix(etsy): remove nameof usage to source settings
After Binding to the EtsyAuthenticationOptions Type instead of each value as section name the actual value we got was by using `nameof(EtsyAuthenticationDefaults.DisplayName)` "DisplayName" and not "Etsy", so this couldn't work with this applyed. Removing the nameof makes it bind again properly
1 parent 41dbbc9 commit b855e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/Mvc.Client/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void ConfigureServices(IServiceCollection services)
6666

6767
.AddEtsy(options =>
6868
{
69-
var etsySection = configuration.GetSection(nameof(EtsyAuthenticationDefaults.DisplayName)).Get<EtsyAuthenticationOptions>();
69+
var etsySection = configuration.GetSection(EtsyAuthenticationDefaults.DisplayName).Get<EtsyAuthenticationOptions>();
7070
if (etsySection is not null)
7171
{
7272
options.ClientId = etsySection.ClientId;

0 commit comments

Comments
 (0)