/// <summary> /// UpdaterThread Thread /// </summary> private void Get(ArchiveInterval interval, URIDelegate URI, ReaderDelegate Reader, Host host, IXenObject xenObject) { if (host == null) { return; } try { Session session = xenObject.Connection.Session; if (session == null) { return; } using (Stream httpstream = HTTPHelper.GET(URI(session, host, interval, xenObject), xenObject.Connection, true)) { using (XmlReader reader = XmlReader.Create(httpstream)) { SetsAdded = new List <DataSet>(); while (reader.Read()) { Reader(reader, xenObject); } } } } catch (WebException) { } catch (Exception e) { log.Debug(string.Format("ArchiveMaintainer: Get updates for {0}: {1} Failed.", xenObject is Host ? "Host" : "VM", xenObject != null ? xenObject.opaque_ref : Helper.NullOpaqueRef), e); } }
/// <summary> /// UpdaterThread Thread /// </summary> private void Get(ArchiveInterval interval, URIDelegate URI, ReaderDelegate Reader, Host host, IXenObject xenObject) { if (host == null) return; try { Session session = xenObject.Connection.Session; if (session == null) return; using (Stream httpstream = HTTPHelper.GET(URI(session, host, interval, xenObject), xenObject.Connection, true, false)) { using (XmlReader reader = XmlReader.Create(httpstream)) { SetsAdded = new List<DataSet>(); while (reader.Read()) { Reader(reader, xenObject); } } } } catch (WebException) { } catch (Exception e) { log.Debug(string.Format("ArchiveMaintainer: Get updates for {0}: {1} Failed.", xenObject is Host ? "Host" : "VM", xenObject != null ? xenObject.opaque_ref : Helper.NullOpaqueRef), e); } }