Add CustomTaskSettings and RosinenStoreMemberReport configuration to AppSettings and appsettings.example.json

This commit is contained in:
troogs
2026-02-17 10:38:39 +01:00
parent 5b462d3898
commit 8a9951335a
2 changed files with 43 additions and 0 deletions

View File

@@ -19,6 +19,11 @@ namespace FsToolbox.Cli.Helper
/// </summary> /// </summary>
public CredentialsSettings Credentials { get; init; } = new(); public CredentialsSettings Credentials { get; init; } = new();
/// <summary>
/// Gets settings related to custom tasks.
/// </summary>
public CustomTaskSettings CustomTasks { get; init; } = new();
#endregion #endregion
} }
@@ -62,6 +67,36 @@ namespace FsToolbox.Cli.Helper
#endregion #endregion
} }
/// <summary>
/// Contains configuration for custom task execution.
/// </summary>
public class CustomTaskSettings
{
#region Public Properties
/// <summary>
/// Configuration for generating the Rosinen store member report.
/// </summary>
public RosinenStoreMemberReportSettings RosinenStoreMemberReport { get; init; } = new();
#endregion
}
/// <summary>
/// Contains store IDs used by the Rosinen member report task.
/// </summary>
public class RosinenStoreMemberReportSettings
{
#region Public Properties
/// <summary>
/// Store IDs that should be queried for member reports.
/// </summary>
public List<int> StoreIds { get; init; } = [];
#endregion
}
/// <summary> /// <summary>
/// Provides access to the current application settings loaded from configuration. /// Provides access to the current application settings loaded from configuration.
/// </summary> /// </summary>

View File

@@ -6,5 +6,13 @@
"Email": "demo@example.com", "Email": "demo@example.com",
"Password": "demo-password", "Password": "demo-password",
"TwoFactorEnabled": false "TwoFactorEnabled": false
},
"CustomTasks": {
"RosinenStoreMemberReport": {
"StoreIds": [
12345,
67890
]
}
} }
} }