Cbor часть 2, десериализация
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace mROA.Implementation.Attributes
|
||||
{
|
||||
public class SerializationIgnoreAttribute : Attribute
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user