Works, but slow for many connections

This commit is contained in:
2025-07-27 00:14:15 +03:00
parent be12f1da65
commit bb3c4887df
24 changed files with 209 additions and 130 deletions
+4 -4
View File
@@ -29,7 +29,7 @@ namespace mROA.Cbor
reader.ReadStartArray();
var value = new NetworkMessage
{
Id = new Guid(reader.ReadByteString()),
Id = new RequestId(reader.ReadByteString()),
MessageType = (EMessageType)reader.ReadInt32(),
Data = reader.ReadByteString()
};
@@ -57,7 +57,7 @@ namespace mROA.Cbor
reader.ReadStartArray();
var value = new DefaultCallRequest
{
Id = new Guid(reader.ReadByteString()),
Id = new RequestId(reader.ReadByteString()),
CommandId = reader.ReadInt32(),
ObjectId = (ComplexObjectIdentifier)ComplexObjectIdentifierParser.Instance.Read(reader, context, serialization),
Parameters = serialization.ReadData(reader, typeof(object[]), context) as object[]
@@ -102,7 +102,7 @@ namespace mROA.Cbor
reader.ReadStartArray();
var result = new FinalCommandExecution<object>
{
Id = new Guid(reader.ReadByteString()),
Id = new RequestId(reader.ReadByteString()),
Result = serialization.ReadData(reader, typeof(object), context),
};
reader.ReadEndArray();
@@ -125,7 +125,7 @@ namespace mROA.Cbor
reader.ReadStartArray();
var result = new FinalCommandExecution
{
Id = new Guid(reader.ReadByteString())
Id = new RequestId(reader.ReadByteString())
};
reader.ReadEndArray();
return result;