From 5489a0f85cef6cec5a39f129cab33b4487a75c93 Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Sat, 15 Feb 2025 09:07:59 +0300 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D1=81=D1=82=D0=BA=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=81=D0=BB=D0=B5=20=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B1=D0=B0=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mROA/Implementation/Backend/BasicExecutionModule.cs | 3 --- mROA/Implementation/Backend/JsonSerialisationModule.cs | 1 - .../Implementation/Frontend/JsonFrontendSerialisationModule.cs | 3 --- 3 files changed, 7 deletions(-) diff --git a/mROA/Implementation/Backend/BasicExecutionModule.cs b/mROA/Implementation/Backend/BasicExecutionModule.cs index 200c948..f8b2fff 100644 --- a/mROA/Implementation/Backend/BasicExecutionModule.cs +++ b/mROA/Implementation/Backend/BasicExecutionModule.cs @@ -14,9 +14,6 @@ public class BasicExecutionModule : IExecuteModule public ICommandExecution Execute(ICallRequest command, IContextRepository _contextRepo) { - Console.WriteLine($"Executing command: {command.CommandId}"); - Thread.Sleep(100); - if (_methodRepo is null) throw new NullReferenceException("Method repository was not defined"); diff --git a/mROA/Implementation/Backend/JsonSerialisationModule.cs b/mROA/Implementation/Backend/JsonSerialisationModule.cs index d68e282..ea873c2 100644 --- a/mROA/Implementation/Backend/JsonSerialisationModule.cs +++ b/mROA/Implementation/Backend/JsonSerialisationModule.cs @@ -27,7 +27,6 @@ public class JsonSerialisationModule : ISerialisationModule command.Parameter = jsElement.Deserialize(parameter); } - Console.WriteLine($"Calling command execution {command.CommandId}"); var response = _executeModule!.Execute(command, _contextRepo); response.ClientId = clientId; var resultType = response is FinalCommandExecution diff --git a/mROA/Implementation/Frontend/JsonFrontendSerialisationModule.cs b/mROA/Implementation/Frontend/JsonFrontendSerialisationModule.cs index 3a9b30d..1c98a9b 100644 --- a/mROA/Implementation/Frontend/JsonFrontendSerialisationModule.cs +++ b/mROA/Implementation/Frontend/JsonFrontendSerialisationModule.cs @@ -41,13 +41,11 @@ public class JsonFrontendSerialisationModule throw new Exception("Interaction module not initialized"); var receiveMessage = await _interactionModule.ReceiveMessage(); - Console.WriteLine($"Received message: {Encoding.UTF8.GetString(receiveMessage)}"); var message = JsonSerializer.Deserialize(receiveMessage)!; while (message.Id != requestId) { receiveMessage = await _interactionModule.ReceiveMessage(); - Console.WriteLine($"Received message again: {Encoding.UTF8.GetString(receiveMessage)}"); message = JsonSerializer.Deserialize(receiveMessage)!; } @@ -66,7 +64,6 @@ public class JsonFrontendSerialisationModule if (_interactionModule is null) throw new Exception("Interaction module not initialized"); - Console.WriteLine($"PostCallRequest: {JsonSerializer.Serialize(callRequest)}"); var post = JsonSerializer.SerializeToUtf8Bytes(callRequest, callRequest.GetType()); _interactionModule.PostMessage(JsonSerializer.SerializeToUtf8Bytes(new NetworkMessage