public IEnumerable <IDataObject> GetListOf(IZetboxContext ctx, InterfaceType ifType, int ID, string property, out List <IStreamable> auxObjects) { using (Logging.Facade.InfoTraceMethodCallFormat("GetListOf", "{0} [{1}].{2}", ifType, ID, property)) { try { return(_implementor.GetListOf(ctx, ifType, ID, property, out auxObjects)); } catch (Exception ex) { Logging.Facade.Error("GetListOf", ex); throw; } } }
internal List <IDataObject> GetListOfCall(int ID, string propertyName) { ResetState(); List <IStreamable> auxObjects; List <IDataObject> serviceResult = _proxy.GetListOf(_context, _type, ID, propertyName, out auxObjects).ToList(); List <IDataObject> result = new List <IDataObject>(); foreach (IDataObject obj in serviceResult) { result.Add((IDataObject)_context.AttachRespectingIsolationLevel(obj)); } foreach (IPersistenceObject obj in auxObjects) { _context.AttachRespectingIsolationLevel(obj); } _context.PlaybackNotifications(); return(result); }