Example #1
0
        public string SaveAzureVhdStop(Uri source, FileInfo localFilePath, int?numThreads, string storageKey, bool overwrite, int ms)
        {
            SaveAzureVhdCmdletInfo       saveAzureVhdCmdletInfo = new SaveAzureVhdCmdletInfo(source, localFilePath, numThreads, storageKey, overwrite);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet  = new WindowsAzurePowershellCmdlet(saveAzureVhdCmdletInfo);

            return(azurePowershellCmdlet.RunAndStop(ms).ToString());
        }
 public string SaveAzureVhdStop(Uri source, FileInfo localFilePath, int? numThreads, string storageKey, bool overwrite, int ms)
 {
     SaveAzureVhdCmdletInfo saveAzureVhdCmdletInfo = new SaveAzureVhdCmdletInfo(source, localFilePath, numThreads, storageKey, overwrite);
     WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(saveAzureVhdCmdletInfo);
     return azurePowershellCmdlet.RunAndStop(ms).ToString();
 }
 public string AddAzureVhdStop(AddAzureVhdCmdletInfo cmdletInfo, int ms)
 {
     WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(cmdletInfo);
     return azurePowershellCmdlet.RunAndStop(ms).ToString();
 }
Example #4
0
        public string AddAzureVhdStop(FileInfo localFile, string destination, int ms)
        {
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(new AddAzureVhdCmdletInfo(destination, localFile.FullName, null, false, null));

            return(azurePowershellCmdlet.RunAndStop(ms).ToString());
        }