public VhdUploadContext AddAzureVhd(AddAzureVhdCmdletInfo cmdletInfo)
 {
     WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(cmdletInfo);
     Collection<PSObject> result = azurePowershellCmdlet.Run();
     if (result.Count == 1)
     {
         return (VhdUploadContext)result[0].BaseObject;
     }
     return null;
 }
 public VhdUploadContext AddAzureVhd(FileInfo localFile, string destination, int numberOfUploaderThreads, bool overWrite)
 {
     var addAzureVhdCmdletInfo = new AddAzureVhdCmdletInfo(destination, localFile.FullName, numberOfUploaderThreads, overWrite);
     WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(addAzureVhdCmdletInfo);
     Collection<PSObject> result = azurePowershellCmdlet.Run();
     if (result.Count == 1)
     {
         return (VhdUploadContext)result[0].BaseObject;
     }
     return null;
 }