Initial commit: IT Nexus Web-App

This commit is contained in:
2026-06-01 20:49:07 +02:00
commit 8023765e6c
387 changed files with 106900 additions and 0 deletions

20
agent-cs/Models/Config.cs Normal file
View File

@@ -0,0 +1,20 @@
using Newtonsoft.Json;
using System.IO;
namespace ITNexusAgent.Models;
public class AgentConfig
{
[JsonProperty("server_url")]
public string ServerUrl { get; set; } = "";
[JsonProperty("agent_key")]
public string AgentKey { get; set; } = "";
public static AgentConfig Load(string path)
{
var json = File.ReadAllText(path);
return JsonConvert.DeserializeObject<AgentConfig>(json)
?? throw new Exception("Ungültige config.json");
}
}