using System.ComponentModel.DataAnnotations; namespace StellaOps.Plugin.MyConnector; /// /// Configuration options for the MyConnector plugin. /// public sealed class MyConnectorOptions { /// /// The configuration section name. /// public const string SectionName = "Plugins:MyConnector"; /// /// Gets or sets the base URL for the connector's data source. /// [Required] public required string BaseUrl { get; set; } /// /// Gets or sets the API key for authentication. /// public string? ApiKey { get; set; } /// /// Gets or sets the request timeout in seconds. Default is 30. /// [Range(1, 300)] public int TimeoutSeconds { get; set; } = 30; /// /// Gets or sets the maximum number of retry attempts. Default is 3. /// [Range(0, 10)] public int MaxRetries { get; set; } = 3; /// /// Gets or sets whether to enable verbose logging. /// public bool EnableVerboseLogging { get; set; } }