Skip to content

Commit

Permalink
load app settings without Settings prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
erlendoksvoll committed Nov 11, 2022
1 parent 3b7fb3c commit a6694f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Dan.Plugin.DATASOURCENAME/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

// This makes IOption<Settings> available in the DI container.
var configurationRoot = context.Configuration;
services.Configure<Settings>(
configurationRoot.GetSection(nameof(Settings)));
services.Configure<Settings>(configurationRoot);
})
.Build();

Expand Down

0 comments on commit a6694f4

Please sign in to comment.