2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-26 21:13:13 +00:00

GC bug fix

This commit is contained in:
2019-11-20 13:19:31 +03:00
parent 76bcd821b5
commit 7de6354857
22 changed files with 442 additions and 236 deletions

View File

@ -546,7 +546,7 @@ namespace Esiur.Data
/// <returns>Resource</returns>
public static AsyncReply<IResource> ParseResource(byte[] data, uint offset)
{
return Warehouse.Get(data.GetUInt32(offset));
return Warehouse.GetById(data.GetUInt32(offset));
}
/// <summary>
@ -703,7 +703,7 @@ namespace Esiur.Data
previous = new AsyncReply<IResource>(null);
else if (result == ResourceComparisonResult.Local)
{
previous = Warehouse.Get(data.GetUInt32(offset));
previous = Warehouse.GetById(data.GetUInt32(offset));
offset += 4;
}
else if (result == ResourceComparisonResult.Distributed)
@ -731,7 +731,7 @@ namespace Esiur.Data
}
else if (result == ResourceComparisonResult.Local)
{
current = Warehouse.Get(data.GetUInt32(offset));
current = Warehouse.GetById(data.GetUInt32(offset));
offset += 4;
}
else if (result == ResourceComparisonResult.Distributed)