чистка после решения бага
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<NetworkMessage>(receiveMessage)!;
|
||||
while (message.Id != requestId)
|
||||
{
|
||||
receiveMessage = await _interactionModule.ReceiveMessage();
|
||||
Console.WriteLine($"Received message again: {Encoding.UTF8.GetString(receiveMessage)}");
|
||||
|
||||
message = JsonSerializer.Deserialize<NetworkMessage>(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
|
||||
|
||||
Reference in New Issue
Block a user