Resolve "Component: Settings" #69

Merged
thorsten merged 32 commits from 13-component-settings into main 2022-08-05 19:35:32 +00:00
Showing only changes of commit c9bd1b5be9 - Show all commits
+8
View File
@@ -115,6 +115,10 @@ public static class AppSettings
public static async Task<string> GetDeepLAPIKey()
{
// Check the cache:
if (CACHE_DEEPL_API_KEY_IS_LOADED)
return CACHE_DEEPL_API_KEY;
// Get the database:
await using var db = ProcessorMeta.ServiceProvider.GetRequiredService<DataContext>();
@@ -181,6 +185,10 @@ public static class AppSettings
public static async Task<SettingDeepLAction> GetDeepLAction()
{
// Check the cache:
if (CACHE_DEEPL_ACTION_IS_LOADED)
return CACHE_DEEPL_ACTION;
// Get the database:
await using var db = ProcessorMeta.ServiceProvider.GetRequiredService<DataContext>();