ITaskManagerService

Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ZennoPoster.ITaskManagerService
Kind: interface


Wcf service contract for working with ZennoPoster tasks

Methods

TasksList

Method

IEnumerable<string> TasksList()

Get list of tasks

AddTask

Method

void AddTask(string task)

Add the task

Parameters

TypeNameDescription
stringtaskTask in xml format

RemoveTask

Method

void RemoveTask(Guid id)

Remove the task

Parameters

TypeNameDescription
GuididId of task

GetTaskInfo

Method

string GetTaskInfo(Guid id)

Get info of the task

Parameters

TypeNameDescription
GuididId of task

Returns: Info of the task

GetTaskInfo

Method

string GetTaskInfo(string projectPath)

Get info of the task

Parameters

TypeNameDescription
stringprojectPathPath to task project

Returns: Info of the task

StopTask

Method

void StopTask(Guid id)

Stop the task

Parameters

TypeNameDescription
GuididId of task

InterruptTask

Method

void InterruptTask(Guid id)

Interrupt the task

Parameters

TypeNameDescription
GuididId of task

StartTask

Method

void StartTask(Guid id)

Start the task

Parameters

TypeNameDescription
GuididId of task

AddTries

Method

void AddTries(Guid id, int count)

Add tries to the task

Parameters

TypeNameDescription
GuididId of task
intcountCount of tries

SetTries

Method

void SetTries(Guid id, int count)

Set tries to the task

Parameters

TypeNameDescription
GuididId of task
intcountCount of tries

SetMaxThreads

Method

void SetMaxThreads(Guid id, int count)

Set max threads to the task

Parameters

TypeNameDescription
GuididId of task
intcountMax count of threads

ClearSucces

Method

void ClearSucces(Guid id)

Clear success count of the task

Parameters

TypeNameDescription
GuididId of task

ClearFails

Method

void ClearFails(Guid id)

Clear fail count of the task

Parameters

TypeNameDescription
GuididId of task

SetExecutionSettings

Method

void SetExecutionSettings(Guid id, string executionSettings)

Set the execution settings

Parameters

TypeNameDescription
GuididId of task
stringexecutionSettingsSettings in xml format

SetSchedulerSettings

Method

void SetSchedulerSettings(Guid id, string schedulerSettings)

Set the scheduler settings

Parameters

TypeNameDescription
GuididId of task
stringschedulerSettingsSettings in xml format

ExportInputSettings

Method

string ExportInputSettings(Guid id)

Export input settings

Parameters

TypeNameDescription
GuididId of task

ImportInputSettings

Method

void ImportInputSettings(Guid id, string source)

Import input settings

Parameters

TypeNameDescription
GuididId of task
stringsourceSettings in xml format

StopTaskByName

Method

void StopTaskByName(string name)

Stop the task

Parameters

TypeNameDescription
stringnameName of task

InterruptTaskByName

Method

void InterruptTaskByName(string name)

Interrupt the task

Parameters

TypeNameDescription
stringnameName of task

StartTaskByName

Method

void StartTaskByName(string name)

Start the task

Parameters

TypeNameDescription
stringnameName of task

AddTriesByName

Method

void AddTriesByName(string name, int count)

Add tries to the task

Parameters

TypeNameDescription
stringnameName of task
intcountCount of tries

SetTriesByName

Method

void SetTriesByName(string name, int count)

Set tries to the task

Parameters

TypeNameDescription
stringnameName of task
intcountCount of tries

SetMaxThreadsByName

Method

void SetMaxThreadsByName(string name, int count)

Set max threads to the task

Parameters

TypeNameDescription
stringnameName of task
intcountMax count of threads

ClearSuccesByName

Method

void ClearSuccesByName(string name)

Clear success count of the task

Parameters

TypeNameDescription
stringnameName of task

ClearFailsByName

Method

void ClearFailsByName(string name)

Clear fails count of the task

Parameters

TypeNameDescription
stringnameName of task

SetExecutionSettingsByName

Method

void SetExecutionSettingsByName(string name, string executionSettings)

Set the execution settings

Parameters

TypeNameDescription
stringnameName of task
stringexecutionSettingsSettings in xml format

SetSchedulerSettingsByName

Method

void SetSchedulerSettingsByName(string name, string schedulerSettings)

Set the scheduler settings

Parameters

TypeNameDescription
stringnameName of task
stringschedulerSettingsSettings in xml format

GetThreadsCount

Method

int GetThreadsCount(string name)

Get count of threads for the task by task name

Parameters

TypeNameDescription
stringnameName of a task

Returns: Count of threads

GetThreadsCount

Method

int GetThreadsCount(Guid id)

Get count of threads for the task by task id

Parameters

TypeNameDescription
GuididId of a task

Returns: Count of threads