예제 #1
0
 protected IVirtualDisk ValidateVirtualDisk(string path)
 {
     Invariant.ArgumentAssert(File.Exists(path), nameof(path), "The file provided doesn't actually exist");
     using (IImageManagementService managementService = ImageManagementService.GetImageManagementService(this._Host))
     {
         managementService.ValidateVirtualHardDisk(path);
         return((IVirtualDisk) new VirtualDisk(this._Host, path, this._Logger));
     }
 }