private void GetReportsFromServer(List <IHierarchicalItem> items, ReportingServiceProxy proxy) { try { items.AddRange(SaveGetCatalogItems(proxy).Select(item => new HierarchicalItem(proxy, item))); } catch (Exception ex) { Logger.LogException(ex); OnTfsCommunicationError(ex.Message); } }
private IEnumerable <CatalogItem> SaveGetCatalogItems(ReportingServiceProxy proxy) { try { return(proxy.ListChildren(ReportFolder, false)); } catch (Exception ex) { Logger.LogException(ex); OnTfsCommunicationError(ex.Message); } return(new CatalogItem[0]); }
private ReportingServiceProxy InitReportingServiceProxy() { if (TeamProjectCollection == null) { return(null); } var regService = TeamProjectCollection.GetService <IRegistration>(); var proxy = new ReportingServiceProxy(TeamProjectCollection); ReportServerUrl = proxy.ReportServiceUrl; ReportFolder = GetReportFolder(regService); return(proxy); }
internal HierarchicalItem(ReportingServiceProxy proxy, CatalogItem item) { Proxy = proxy; Item = item; }