예제 #1
0
파일: Drive.cs 프로젝트: radtek/vhddirector
 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);
     }
 }