Fehlerbehebung von TCP-Eingangsnachrichten beim Server (DX86.cs)

Implementierung CommandManager.cs in BackendServer.cs

Worker.cs umbennannt zu Employee.cs
WorkerState.cs umbenannt zu EmployeeState.cs

.help command eingefügt (HelpCommand.cs)

Management-Server auf port 3767 eingefügt (Program.cs)

Server-Connector (Server.cs) erste methoden eingefügt
GetEmployee
Login
Logout
clockin,clockout,clockbreak
This commit is contained in:
SnapixLP | Tim G.
2025-05-20 12:44:28 +02:00
parent c214be937c
commit 67bfce265c
8 changed files with 261 additions and 15 deletions

View File

@@ -1,4 +1,6 @@
using System.Reflection;
using System.Net.Sockets;
using System.Reflection;
using DX86;
using Server.Commands;
namespace Server;
@@ -30,11 +32,11 @@ public class CommandManager
}
}
public void ExecuteCommand(string executor, params string[] args)
public void ExecuteCommand(string executor, TcpClient? client = null, TcpServer? clientSocket = null, params string[] args)
{
if (_commands.TryGetValue(executor, out var command))
{
command.Exec(args);
command.Exec(args:args, client:client, clientSocket:clientSocket);
}
else
{