From 71649de2c265e70357448e918d2e56c048f226b0 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Mon, 5 Jun 2023 14:19:40 +0300 Subject: [PATCH] Added comment why short name is not used --- .../DependencyInjection/PeriodicTaskConfigureOptions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tingle.PeriodicTasks/DependencyInjection/PeriodicTaskConfigureOptions.cs b/src/Tingle.PeriodicTasks/DependencyInjection/PeriodicTaskConfigureOptions.cs index 1f6628c..85977a7 100644 --- a/src/Tingle.PeriodicTasks/DependencyInjection/PeriodicTaskConfigureOptions.cs +++ b/src/Tingle.PeriodicTasks/DependencyInjection/PeriodicTaskConfigureOptions.cs @@ -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);