Add XML docs

This commit is contained in:
Stone_Red
2025-12-23 15:15:18 +01:00
parent 55f26b3a92
commit 3e339b2b7a
26 changed files with 377 additions and 4 deletions
@@ -1,8 +1,23 @@
namespace RemoteExec.Server.Configuration;
/// <summary>
/// Represents an individual API key configuration.
/// </summary>
public class ApiKeyConfiguration
{
/// <summary>
/// Gets or sets the API key value.
/// </summary>
public required string Key { get; set; }
/// <summary>
/// Gets or sets an optional description of the API key.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Gets or sets whether this API key is enabled.
/// Default is true.
/// </summary>
public bool Enabled { get; set; } = true;
}
@@ -1,6 +1,12 @@
namespace RemoteExec.Server.Configuration;
/// <summary>
/// Configuration for API key authentication.
/// </summary>
public class AuthenticationConfiguration
{
/// <summary>
/// Gets or sets the list of configured API keys.
/// </summary>
public List<ApiKeyConfiguration> ApiKeys { get; set; } = [];
}