Add CustomTaskSettings and RosinenStoreMemberReport configuration to AppSettings and appsettings.example.json
This commit is contained in:
@@ -19,6 +19,11 @@ namespace FsToolbox.Cli.Helper
|
||||
/// </summary>
|
||||
public CredentialsSettings Credentials { get; init; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Gets settings related to custom tasks.
|
||||
/// </summary>
|
||||
public CustomTaskSettings CustomTasks { get; init; } = new();
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -62,6 +67,36 @@ namespace FsToolbox.Cli.Helper
|
||||
#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>
|
||||
/// Provides access to the current application settings loaded from configuration.
|
||||
/// </summary>
|
||||
|
||||
@@ -6,5 +6,13 @@
|
||||
"Email": "demo@example.com",
|
||||
"Password": "demo-password",
|
||||
"TwoFactorEnabled": false
|
||||
},
|
||||
"CustomTasks": {
|
||||
"RosinenStoreMemberReport": {
|
||||
"StoreIds": [
|
||||
12345,
|
||||
67890
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user