Дополнительный переход на UOI

This commit is contained in:
2025-03-10 20:04:00 +03:00
parent 81a9698de4
commit 96aa828808
3 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ namespace mROA.Implementation
CancellationToken cancellationToken = default)
{
var request = new DefaultCallRequest
{ CommandId = methodId, ObjectId = _identifier.ContextId, Parameters = parameters
{ CommandId = methodId, ObjectId = _identifier, Parameters = parameters
};
await _representationModule.PostCallMessageAsync(request.Id, MessageType.CallRequest, request);
@@ -80,7 +80,7 @@ namespace mROA.Implementation
CancellationToken cancellationToken = default)
{
var request = new DefaultCallRequest
{ CommandId = methodId, ObjectId = _identifier.ContextId, Parameters = parameters
{ CommandId = methodId, ObjectId = _identifier, Parameters = parameters
};
await _representationModule.PostCallMessageAsync(request.Id, MessageType.CallRequest, request);
@@ -8,6 +8,12 @@ namespace mROA.Implementation
public int ContextId;
public int OwnerId;
public UniversalObjectIdentifier(int contextId, int ownerId)
{
ContextId = contextId;
OwnerId = ownerId;
}
public static UniversalObjectIdentifier Null = new UniversalObjectIdentifier { ContextId = -2, OwnerId = -1 };
public static UniversalObjectIdentifier FromFlat(ulong flat) => new() { Flat = flat };