Cbor часть 2, десериализация

This commit is contained in:
2025-02-25 08:43:01 +03:00
parent 05ee651e89
commit c0bb3c523a
7 changed files with 322 additions and 38 deletions
@@ -0,0 +1,9 @@
using System;
namespace mROA.Implementation.Attributes
{
public class SerializationIgnoreAttribute : Attribute
{
}
}
+6 -3
View File
@@ -32,11 +32,12 @@ namespace mROA.Implementation
}
public class SharedObject : SharedObject<object>
public interface ISharedObject
{
IEndPointContext EndPointContext { get; set; }
}
public class SharedObject<T> where T : notnull
public class SharedObject<T> : ISharedObject where T : notnull
{
private IContextRepository GetDefaultContextRepository() =>
(OwnerId == TransmissionConfig.OwnershipRepository.GetHostOwnershipId()
@@ -103,5 +104,7 @@ namespace mROA.Implementation
public static implicit operator SharedObject<T>(T value) =>
new(value);
public IEndPointContext EndPointContext { get; set; }
}
}