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

New AsyncReply

This commit is contained in:
2019-12-31 12:44:54 +03:00
parent a96ddf602f
commit 3375a814e6
13 changed files with 470 additions and 61 deletions

View File

@ -202,6 +202,7 @@ namespace Esyur.Stores.MongoDB
x);
});
bag.Add(av);
}
@ -222,7 +223,7 @@ namespace Esyur.Stores.MongoDB
return rt;
}
IAsyncReply<object> Parse(BsonValue value)
AsyncReply Parse(BsonValue value)
{
if (value.BsonType == BsonType.Document)
{
@ -850,8 +851,8 @@ namespace Esyur.Stores.MongoDB
foreach (var child in children)
{
var r = Warehouse.Get(child);
if (r is IAsyncReply<T>)
rt.Add((IAsyncReply<T>)r);
if (r is AsyncReply<T>)
rt.Add(r);// (AsyncReply<T>)r);
}
rt.Seal();
@ -882,8 +883,8 @@ namespace Esyur.Stores.MongoDB
foreach (var parent in parents)
{
var r = Warehouse.Get(parent);
if (r is IAsyncReply<T>)
rt.Add((IAsyncReply<T>)r);
if (r is AsyncReply<T>)
rt.Add(r);// (AsyncReply<T>)r);
}