示例#1
0
 public void StartMaintenance(MaintenanceOperation operation)
 {
     this.InitializeComInterfaces();
     if (this.maintenance == null)
     {
         throw new NotSupportedException("The drive does not support maintenance operations.");
     }
     try
     {
         this.maintenance.StartMaintenance(operation);
     }
     catch (COMException exception)
     {
         throw new VdsException("The call to IVdsMaintenance::StartMaintenance failed.", exception);
     }
 }
示例#2
0
文件: Lun.cs 项目: radtek/vhddirector
 public void PulseMaintenance(MaintenanceOperation operation, uint count)
 {
     this.InitializeComInterfaces();
     if (this.maintenance == null)
     {
         throw new NotSupportedException("The lun does not support maintenance operations.");
     }
     try
     {
         this.maintenance.PulseMaintenance(operation, count);
     }
     catch (COMException exception)
     {
         throw new VdsException("The call to IVdsMaintenance::PulseMaintenance failed.", exception);
     }
 }