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
| Type | Name | Description |
|---|---|---|
string | task | Task in xml format |
RemoveTask
Method
void RemoveTask(Guid id)
Remove the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
GetTaskInfo
Method
string GetTaskInfo(Guid id)
Get info of the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
Returns: Info of the task
GetTaskInfo
Method
string GetTaskInfo(string projectPath)
Get info of the task
Parameters
| Type | Name | Description |
|---|---|---|
string | projectPath | Path to task project |
Returns: Info of the task
StopTask
Method
void StopTask(Guid id)
Stop the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
InterruptTask
Method
void InterruptTask(Guid id)
Interrupt the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
StartTask
Method
void StartTask(Guid id)
Start the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
AddTries
Method
void AddTries(Guid id, int count)
Add tries to the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
int | count | Count of tries |
SetTries
Method
void SetTries(Guid id, int count)
Set tries to the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
int | count | Count of tries |
SetMaxThreads
Method
void SetMaxThreads(Guid id, int count)
Set max threads to the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
int | count | Max count of threads |
ClearSucces
Method
void ClearSucces(Guid id)
Clear success count of the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
ClearFails
Method
void ClearFails(Guid id)
Clear fail count of the task
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
SetExecutionSettings
Method
void SetExecutionSettings(Guid id, string executionSettings)
Set the execution settings
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
string | executionSettings | Settings in xml format |
SetSchedulerSettings
Method
void SetSchedulerSettings(Guid id, string schedulerSettings)
Set the scheduler settings
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
string | schedulerSettings | Settings in xml format |
ExportInputSettings
Method
string ExportInputSettings(Guid id)
Export input settings
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
ImportInputSettings
Method
void ImportInputSettings(Guid id, string source)
Import input settings
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of task |
string | source | Settings in xml format |
StopTaskByName
Method
void StopTaskByName(string name)
Stop the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
InterruptTaskByName
Method
void InterruptTaskByName(string name)
Interrupt the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
StartTaskByName
Method
void StartTaskByName(string name)
Start the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
AddTriesByName
Method
void AddTriesByName(string name, int count)
Add tries to the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
int | count | Count of tries |
SetTriesByName
Method
void SetTriesByName(string name, int count)
Set tries to the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
int | count | Count of tries |
SetMaxThreadsByName
Method
void SetMaxThreadsByName(string name, int count)
Set max threads to the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
int | count | Max count of threads |
ClearSuccesByName
Method
void ClearSuccesByName(string name)
Clear success count of the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
ClearFailsByName
Method
void ClearFailsByName(string name)
Clear fails count of the task
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
SetExecutionSettingsByName
Method
void SetExecutionSettingsByName(string name, string executionSettings)
Set the execution settings
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
string | executionSettings | Settings in xml format |
SetSchedulerSettingsByName
Method
void SetSchedulerSettingsByName(string name, string schedulerSettings)
Set the scheduler settings
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of task |
string | schedulerSettings | Settings in xml format |
GetThreadsCount
Method
int GetThreadsCount(string name)
Get count of threads for the task by task name
Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of a task |
Returns: Count of threads
GetThreadsCount
Method
int GetThreadsCount(Guid id)
Get count of threads for the task by task id
Parameters
| Type | Name | Description |
|---|---|---|
Guid | id | Id of a task |
Returns: Count of threads