Автоматический клинап

This commit is contained in:
micialware committed 2025-03-13 20:01:17 +03:00
1 parent 1ff521c614
commit 40a7f86dcf
30 files changed
+55 -36

No files matched your search

@@ -36,13 +36,14 @@ namespace mROA.Implementation.Frontend
throw new Exception("Interaction module was not injected");
if (_serialization == null)
throw new NullReferenceException("Serialization toolkit is not initialized");
_tcpClient.Connect(_ipEndPoint);
_interactionModule.BaseStream = _tcpClient.GetStream();
var welcomeMessage = _interactionModule.GetNextMessageReceiving().GetAwaiter().GetResult();
if (welcomeMessage.SchemaId != MessageType.IdAssigning)
{
throw new Exception($"Incorrect message type. Must be IdAssigning, current : {welcomeMessage.SchemaId.ToString()}");
throw new Exception(
$"Incorrect message type. Must be IdAssigning, current : {welcomeMessage.SchemaId.ToString()}");
}