feat(core): update DTOs, Trade Republic client, Yahoo scrapers, and dynamic settings
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
namespace FinlyticCore.Models.Settings;
|
||||
|
||||
/// <summary>
|
||||
/// Globale, mikroservice-übergreifende SettingKeys in FinlyticCore.
|
||||
/// </summary>
|
||||
public static class CoreSettingKeys
|
||||
{
|
||||
// --- Logging-Kanäle ---
|
||||
public static readonly SettingKey<bool> HealthPingChannel = new("Logging.Channel.Health", true);
|
||||
public static readonly SettingKey<bool> MqttChannel = new("Logging.Channel.MQTT", true);
|
||||
public static readonly SettingKey<bool> HtmlScrapperChannel = new("Logging.Channel.HtmlScrapper", true);
|
||||
public static readonly SettingKey<bool> YahooClientChannel = new("Logging.Channel.YahooClient", true);
|
||||
public static readonly SettingKey<bool> FundamentalsChannel = new("Logging.Channel.Fundamentals", true);
|
||||
|
||||
// --- Scraper & Feature-Toggles ---
|
||||
public static readonly SettingKey<bool> EnableHtmlFallback = new("Feature.EnableHtmlFallback", true);
|
||||
public static readonly SettingKey<bool> AllowForceRefresh = new("Feature.AllowForceRefresh", true);
|
||||
public static readonly SettingKey<int> ScraperTimeoutSeconds = new("Scraper.TimeoutSeconds", 30);
|
||||
public static readonly SettingKey<int> ScraperMaxRetries = new("Scraper.MaxRetries", 2);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace FinlyticCore.Models.Settings;
|
||||
|
||||
public enum LogLevelEnum
|
||||
{
|
||||
None,
|
||||
Debug,
|
||||
Info,
|
||||
Error
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace FinlyticCore.Models.Settings;
|
||||
|
||||
/// <summary>
|
||||
/// Verknüpft einen Setting-Key typsicher mit seinem Rückgabetyp T und einem Standardwert.
|
||||
/// </summary>
|
||||
public record SettingKey<T>(string Name, T DefaultValue);
|
||||
Reference in New Issue
Block a user