Fix communication between applications.
This commit is contained in:
+1
-2
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user