Fix communication between applications.

This commit is contained in:
2024-11-27 11:33:53 +01:00
parent a160992c08
commit 4eaaf0f244
11 changed files with 18 additions and 16 deletions
+1 -2
View File
@@ -60,7 +60,7 @@ public static class Commands
VariableValue = value
};
SendAndRecieveStringMessage(communicationObject);
Console.WriteLine(SendAndRecieveStringMessage(communicationObject));
}
public static void GetHelp()
@@ -113,7 +113,6 @@ public static class Commands
byte[] lol = JsonSerializer.SerializeToUtf8Bytes(communicationObject);
using RequestSocket client = new();
client.Connect("tcp://127.0.0.1:5556");
client.SendFrame(lol);
+3
View File
@@ -39,7 +39,10 @@ do
else if (string.Equals(input, "R"))
{
Console.WriteLine("Variable name.");
string? variable = Console.ReadLine();
Console.WriteLine("Variable value.");
string? value = Console.ReadLine();
if (string.IsNullOrWhiteSpace(variable) || string.IsNullOrWhiteSpace(value))