работоспособность восстановлена, все проблемы которые подсвечиваются решены

This commit is contained in:
2025-02-07 17:11:58 +03:00
parent 4a95cd84c1
commit 82af5df488
6 changed files with 47 additions and 7 deletions
@@ -45,7 +45,6 @@ public class JsonFrontendSerialisationModule
parsed = JsonSerializer.Deserialize<FinalCommandExecution<T>>(receiveMessage)!;
}
parsed.Result = parsed.Result! is JsonElement e ? e.Deserialize<T>() : (T)parsed.Result!;
return parsed;
}
@@ -14,12 +14,13 @@ public class TransmittedSharedObject<T> where T : notnull
throw new NullReferenceException(
"DefaultContextRepository was not defined");
private int ContextId { get; init; } = -1;
// ReSharper disable once MemberCanBePrivate.Global
public int ContextId { get; init; } = -1;
[JsonIgnore]
public T? Value => GetDefaultContextRepository().GetObject<T>(ContextId);
private TransmittedSharedObject()
public TransmittedSharedObject()
{
}
public TransmittedSharedObject(T value)