2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 11:32:59 +00:00
This commit is contained in:
Ahmed Zamil 2019-11-23 03:12:13 +03:00
parent 5a0673b403
commit ba1fc9c18e

View File

@ -845,7 +845,6 @@ namespace Esiur.Stores.MongoDB
public AsyncBag<T> Parents<T>(IResource resource, string name) where T : IResource public AsyncBag<T> Parents<T>(IResource resource, string name) where T : IResource
{ {
Console.WriteLine("Parents start");
if (resource == this) if (resource == this)
{ {
@ -853,8 +852,6 @@ namespace Esiur.Stores.MongoDB
} }
else else
{ {
Console.WriteLine("Parents 1");
var parents = (string[])resource.Instance.Attributes["parents"]; var parents = (string[])resource.Instance.Attributes["parents"];
if (parents == null) if (parents == null)
@ -864,7 +861,7 @@ namespace Esiur.Stores.MongoDB
var rt = new AsyncBag<T>(); var rt = new AsyncBag<T>();
Console.WriteLine("Parents 2");
foreach (var parent in parents) foreach (var parent in parents)
{ {
@ -873,11 +870,9 @@ namespace Esiur.Stores.MongoDB
rt.Add((IAsyncReply<T>)r); rt.Add((IAsyncReply<T>)r);
} }
Console.WriteLine($"Parents 3 {parents.Length}");
rt.Seal(); rt.Seal();
Console.WriteLine("Parents end");
return rt; return rt;
} }