Skip to content

Commit

Permalink
Added comment why short name is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Jun 5, 2023
1 parent 6eec36f commit 71649de
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public void Configure(string? name, PeriodicTaskOptions options)
var configuration = configurationProvider.Configuration.GetSection($"Tasks:{name}");
configuration.Bind(options);

// binding using short name is not done because it may result in duplicates

// bind using the full type name
configuration = configurationProvider.Configuration.GetSection($"Tasks:{type.FullName}");
configuration.Bind(options);
Expand Down

0 comments on commit 71649de

Please sign in to comment.