protected override void Run()
 {
     SafeToExit  = false;
     Description = String.Format(Messages.ACTION_CHECK_DISK_SPACE_DESCRIPTION, Host.Name);
     if (!IsEnoughDiskSpace())
     {
         DiskSpaceRequirements diskSpaceRequirements = null;
         var getDiskSpaceRequirementsAction          = new GetDiskSpaceRequirementsAction(Host, fileName, fileSize, true);
         try
         {
             getDiskSpaceRequirementsAction.RunExternal(Session);
             diskSpaceRequirements = getDiskSpaceRequirementsAction.DiskSpaceRequirements;
         }
         catch (Failure failure)
         {
             log.WarnFormat("Getting disk space requirements on {0} failed with: {1}", Host.Name, failure.Message);
         }
         Exception = new NotEnoughSpaceException(Host.Name, fileName, diskSpaceRequirements);
     }
 }
 protected override void Run()
 {
     SafeToExit = false;
     Description = String.Format(Messages.ACTION_CHECK_DISK_SPACE_DESCRIPTION, Host.Name);
     if (!IsEnoughDiskSpace())
     {
         DiskSpaceRequirements diskSpaceRequirements = null;
         var getDiskSpaceRequirementsAction = new GetDiskSpaceRequirementsAction(Host, fileName, fileSize, true);
         try
         {
             getDiskSpaceRequirementsAction.RunExternal(Session);
             diskSpaceRequirements = getDiskSpaceRequirementsAction.DiskSpaceRequirements;
         }
         catch (Failure failure)
         {
             log.WarnFormat("Getting disk space requirements on {0} failed with: {1}", Host.Name, failure.Message);
         }
         Exception = new NotEnoughSpaceException(Host.Name, fileName, diskSpaceRequirements);
     }
 }