Переписывание на UniversalObjectIdentifier. Часть 1

This commit is contained in:
2025-03-01 15:54:01 +03:00
parent 3c88e4f768
commit af65f22aa9
7 changed files with 80 additions and 11 deletions
+2
View File
@@ -12,6 +12,7 @@ namespace mROA.Cbor
{
public class CborSerializationToolkit : IContextualSerializationToolKit
{
private List<Type> _remoteTypes;
public byte[] Serialize(object objectToSerialize, IEndPointContext context)
{
var writer = new CborWriter();
@@ -352,6 +353,7 @@ namespace mROA.Cbor
public void Inject<T>(T dependency)
{
_remoteTypes = RemoteContextRepository.RemoteTypes.Keys.ToList();
}
public byte[] Serialize<T>(T objectToSerialize)