All checks were successful
Build, Push and Run Container / build (push) Successful in 25s
Reads telemetry configuration parameters such as hostname, port, and CA certificate from an external JSON file. This decouples configuration from code, allowing for easier updates and management of telemetry settings.
10 lines
320 B
C#
10 lines
320 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace ProofOfConcept.Models;
|
|
|
|
public class ValidationModel
|
|
{
|
|
[JsonPropertyName("hostname")] public string HostName { get; set; } = "";
|
|
[JsonPropertyName("port")] public ushort Port { get; set; } = 443;
|
|
[JsonPropertyName("ca")] public string CA { get; set; } = "";
|
|
} |