/// <summary> /// Download raw bundle bytes /// </summary> /// <param name="bundleUri">Uri from where to retreive the bundle</param> /// <returns>Byte array</returns> public byte[] DownloadRaw(Uri bundleUri) { if (bundleUri == null) { throw new ArgumentNullException("bundleUri"); } using (WebDownloader client = new WebDownloader()) { client.TimeoutMS = this.TimeoutMS; client.MaxRetries = m_maxRetries; return client.DownloadDataWithRetry(bundleUri); } }
/// <summary> /// Download raw bundle bytes /// </summary> /// <param name="bundleUri">Uri from where to retreive the bundle</param> /// <returns>Byte array</returns> public byte[] DownloadRaw(Uri bundleUri) { if (bundleUri == null) { throw new ArgumentNullException("bundleUri"); } using (WebDownloader client = new WebDownloader()) { client.TimeoutMS = this.TimeoutMS; client.MaxRetries = m_maxRetries; client.Headers.Add(HttpRequestHeader.Accept, "application/octet-stream,application/x-pkcs7-certificates,application/pkcs7-mime"); return client.DownloadDataWithRetry(bundleUri); } }