public static AssemblyManifest DownloadDeploymentManifest(SubscriptionStore subStore, ref Uri sourceUri, out TempFile tempFile, IDownloadNotification notification, DownloadOptions options) { Logger.AddMethodCall("DownloadDeploymentManifest called."); Logger.AddInternalState("SourceUri=" + (object)sourceUri); Logger.AddInternalState("DownloadOptions=" + (options != null ? options.ToString() : "null")); tempFile = (TempFile)null; TempFile tempFile1 = (TempFile)null; TempFile tempFile2 = (TempFile)null; DownloadManager.ClientCertificate = (X509Certificate2)null; AssemblyManifest deployment; try { ServerInformation serverInformation; deployment = DownloadManager.DownloadDeploymentManifestDirect(subStore, ref sourceUri, out tempFile1, notification, options, out serverInformation); Logger.SetSubscriptionServerInformation(serverInformation); bool flag = DownloadManager.FollowDeploymentProviderUri(subStore, ref deployment, ref sourceUri, out tempFile2, notification, options); tempFile = flag ? tempFile2 : tempFile1; } finally { if (tempFile1 != null && tempFile1 != tempFile) { tempFile1.Dispose(); } if (tempFile2 != null && tempFile2 != tempFile) { tempFile2.Dispose(); } } return(deployment); }
public static AssemblyManifest DownloadDeploymentManifest(SubscriptionStore subStore, ref Uri sourceUri, out TempFile tempFile, IDownloadNotification notification, DownloadOptions options) { AssemblyManifest manifest; Logger.AddMethodCall("DownloadDeploymentManifest called."); Logger.AddInternalState("SourceUri=" + sourceUri); Logger.AddInternalState("DownloadOptions=" + ((options != null) ? options.ToString() : "null")); tempFile = null; TempFile file = null; TempFile file2 = null; try { ServerInformation information; manifest = DownloadDeploymentManifestDirect(subStore, ref sourceUri, out file, notification, options, out information); Logger.SetSubscriptionServerInformation(information); bool flag = FollowDeploymentProviderUri(subStore, ref manifest, ref sourceUri, out file2, notification, options); tempFile = flag ? file2 : file; } finally { if ((file != null) && (file != tempFile)) { file.Dispose(); file = null; } if ((file2 != null) && (file2 != tempFile)) { file2.Dispose(); file2 = null; } } return(manifest); }
public static AssemblyManifest DownloadDeploymentManifest(SubscriptionStore subStore, ref Uri sourceUri, out TempFile tempFile, IDownloadNotification notification, DownloadOptions options) { AssemblyManifest manifest; Logger.AddMethodCall("DownloadDeploymentManifest called."); Logger.AddInternalState("SourceUri=" + sourceUri); Logger.AddInternalState("DownloadOptions=" + ((options != null) ? options.ToString() : "null")); tempFile = null; TempFile file = null; TempFile file2 = null; try { ServerInformation information; manifest = DownloadDeploymentManifestDirect(subStore, ref sourceUri, out file, notification, options, out information); Logger.SetSubscriptionServerInformation(information); bool flag = FollowDeploymentProviderUri(subStore, ref manifest, ref sourceUri, out file2, notification, options); tempFile = flag ? file2 : file; } finally { if ((file != null) && (file != tempFile)) { file.Dispose(); file = null; } if ((file2 != null) && (file2 != tempFile)) { file2.Dispose(); file2 = null; } } return manifest; }