C# Class SecureDelete.Schedule.TaskManager

Mostrar archivo Open project: gratianlup/SecureDelete Class Usage Examples

Public Methods

Method 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

Method 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 method

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

DeserializeTask() public static method

public static DeserializeTask ( byte data ) : ScheduledTask
data byte
return ScheduledTask

ForceStartTask() public method

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

ForceStopTask() public method

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

GetTaskById() public method

public GetTaskById ( System.Guid id ) : ScheduledTask
id System.Guid
return ScheduledTask

LoadAndHandleTask() public method

public LoadAndHandleTask ( System.Guid id ) : bool
id System.Guid
return bool

LoadAndHandleTask() public method

public LoadAndHandleTask ( string path ) : bool
path string
return bool

LoadOptions() public method

public LoadOptions ( ) : bool
return bool

LoadTask() public static method

public static LoadTask ( string path, ScheduledTask &task ) : bool
path string
task ScheduledTask
return bool

LoadTasks() public method

public LoadTasks ( ) : void
return void

PauseAllTasks() public method

public PauseAllTasks ( ) : void
return void

RemoveTask() public method

public RemoveTask ( System.Guid id ) : bool
id System.Guid
return bool

ResumeAllTasks() public method

public ResumeAllTasks ( ) : void
return void

SaveTask() public static method

public static SaveTask ( string path, ScheduledTask task ) : bool
path string
task ScheduledTask
return bool

SerializeTask() public static method

public static SerializeTask ( ScheduledTask task ) : byte[]
task ScheduledTask
return byte[]

StartTask() public method

Schedule the task.
public StartTask ( System.Guid id ) : bool
id System.Guid
return bool

StartTaskSchedule() public method

public StartTaskSchedule ( ScheduledTask task ) : void
task ScheduledTask
return void

StopAllTasks() public method

public StopAllTasks ( ) : void
return void

TaskManager() public method

public TaskManager ( ) : System
return System