public Task <IExplorerObject> CreateInstanceByFullName(string FullName, ISerializableExplorerObjectCache cache) { if (cache.Contains(FullName)) { return(Task.FromResult <IExplorerObject>(cache[FullName])); } if (this.FullName == FullName) { EventTableGroupObject exObject = new EventTableGroupObject(); cache.Append(exObject); return(Task.FromResult <IExplorerObject>(exObject)); } return(Task.FromResult <IExplorerObject>(null)); }
async public Task <IExplorerObject> CreateInstanceByFullName(string FullName, ISerializableExplorerObjectCache cache) { if (cache.Contains(FullName)) { return(cache[FullName]); } EventTableGroupObject group = new EventTableGroupObject(); if (FullName.StartsWith(group.FullName)) { foreach (IExplorerObject exObject in await group.ChildObjects()) { if (exObject.FullName == FullName) { cache.Append(exObject); return(exObject); } } } return(null); }