C# Class SecureDelete.Schedule.TaskManager

Afficher le fichier Open project: gratianlup/SecureDelete Class Usage Examples

Méthodes publiques

Méthode Description
AddTask ( ScheduledTask task, bool start ) : bool

Used on the client side only.

DeserializeTask ( byte data ) : ScheduledTask
ForceStartTask ( System.Guid id ) : bool

Start the task in wipe mode.

ForceStopTask ( System.Guid id ) : bool

Stop a task, event if it's in wiping mode

GetTaskById ( System.Guid id ) : ScheduledTask
LoadAndHandleTask ( System.Guid id ) : bool
LoadAndHandleTask ( string path ) : bool
LoadOptions ( ) : bool
LoadTask ( string path, ScheduledTask &task ) : bool
LoadTasks ( ) : void
PauseAllTasks ( ) : void
RemoveTask ( System.Guid id ) : bool
ResumeAllTasks ( ) : void
SaveTask ( string path, ScheduledTask task ) : bool
SerializeTask ( ScheduledTask task ) : byte[]
StartTask ( System.Guid id ) : bool

Schedule the task.

StartTaskSchedule ( ScheduledTask task ) : void
StopAllTasks ( ) : void
TaskManager ( ) : System

Private Methods

Méthode Description
AttachTaskEvents ( ScheduledTask task ) : void
ControllerTaskStopped ( ScheduledTask task, int remaining ) : void
DetachTaskEvents ( ScheduledTask task ) : void
ForceStopTask ( ScheduledTask task ) : bool

Stop a task, event if it's in wiping mode

HandleNewTask ( ScheduledTask task, bool start ) : void
PrepareForStart ( ScheduledTask task ) : void
SetControllerSettings ( ) : void
StartTasks ( ) : void
TaskCanStart ( ) : bool
TaskCompleted ( ScheduledTask task ) : void
TaskStarted ( ScheduledTask task ) : void
TaskStatusChanged ( ScheduledTask task, TaskStatus status ) : void
TryStopTask ( ScheduledTask task ) : bool

Method Details

AddTask() public méthode

Used on the client side only.
public AddTask ( ScheduledTask task, bool start ) : bool
task ScheduledTask
start bool
Résultat bool

DeserializeTask() public static méthode

public static DeserializeTask ( byte data ) : ScheduledTask
data byte
Résultat ScheduledTask

ForceStartTask() public méthode

Start the task in wipe mode.
public ForceStartTask ( System.Guid id ) : bool
id System.Guid
Résultat bool

ForceStopTask() public méthode

Stop a task, event if it's in wiping mode
public ForceStopTask ( System.Guid id ) : bool
id System.Guid
Résultat bool

GetTaskById() public méthode

public GetTaskById ( System.Guid id ) : ScheduledTask
id System.Guid
Résultat ScheduledTask

LoadAndHandleTask() public méthode

public LoadAndHandleTask ( System.Guid id ) : bool
id System.Guid
Résultat bool

LoadAndHandleTask() public méthode

public LoadAndHandleTask ( string path ) : bool
path string
Résultat bool

LoadOptions() public méthode

public LoadOptions ( ) : bool
Résultat bool

LoadTask() public static méthode

public static LoadTask ( string path, ScheduledTask &task ) : bool
path string
task ScheduledTask
Résultat bool

LoadTasks() public méthode

public LoadTasks ( ) : void
Résultat void

PauseAllTasks() public méthode

public PauseAllTasks ( ) : void
Résultat void

RemoveTask() public méthode

public RemoveTask ( System.Guid id ) : bool
id System.Guid
Résultat bool

ResumeAllTasks() public méthode

public ResumeAllTasks ( ) : void
Résultat void

SaveTask() public static méthode

public static SaveTask ( string path, ScheduledTask task ) : bool
path string
task ScheduledTask
Résultat bool

SerializeTask() public static méthode

public static SerializeTask ( ScheduledTask task ) : byte[]
task ScheduledTask
Résultat byte[]

StartTask() public méthode

Schedule the task.
public StartTask ( System.Guid id ) : bool
id System.Guid
Résultat bool

StartTaskSchedule() public méthode

public StartTaskSchedule ( ScheduledTask task ) : void
task ScheduledTask
Résultat void

StopAllTasks() public méthode

public StopAllTasks ( ) : void
Résultat void

TaskManager() public méthode

public TaskManager ( ) : System
Résultat System