C# Class Aditi.Scheduler.ScheduledTasks

显示文件 Open project: AditiTechnologies/Aditi.Scheduler Class Usage Examples

Public Methods

Method Description
CreateTask ( TaskModel task ) : System.Guid
CreateTaskAsync ( TaskModel task ) : Task
DeleteTask ( System.Guid taskId ) : System.Guid
DeleteTaskAsync ( System.Guid taskId ) : Task
GetOperationStatus ( System.Guid operationId, bool blocked = false ) : OperationStatus
GetOperationStatusAsync ( System.Guid operationId, bool blocked = false ) : Task
GetTask ( System.Guid taskId ) : TaskModel
GetTaskAsync ( System.Guid taskId ) : Task
GetTaskHistory ( System.Guid taskId, string token = null ) : WebhookAuditResult
GetTaskHistoryAsync ( string taskId, string token = null ) : Task
GetTasks ( ) : IEnumerable
GetTasksAsync ( ) : Task>
ScheduledTasks ( Uri uri, string subscriptionId, string secretKey ) : System
ScheduledTasks ( string subscriptionId, string secretKey ) : System
UpdateTask ( TaskModel task ) : System.Guid
UpdateTaskAsync ( TaskModel task ) : Task

Private Methods

Method Description
CreateHttpClient ( ) : HttpClient
CreateSchedulerException ( WebException we ) : SchedulerException
CreateSchedulerException ( string responseMessage ) : SchedulerException
CreateWebApiRequest ( String relativeUri ) : HttpWebRequest
GetOperationId ( HttpResponseMessage response ) : System.Guid
GetOperationId ( HttpWebResponse response ) : System.Guid
GetResponse ( HttpWebRequest clientRequest ) : HttpWebResponse
Poll ( string pollingUrl ) : OperationStatus
PollAsync ( string pollingUrl ) : Task

Method Details

CreateTask() public method

Thrown when Task model is invalid
public CreateTask ( TaskModel task ) : System.Guid
task Aditi.Scheduler.Models.TaskModel
return System.Guid

CreateTaskAsync() public method

Thrown when Task model is invalid T
public CreateTaskAsync ( TaskModel task ) : Task
task Aditi.Scheduler.Models.TaskModel
return Task

DeleteTask() public method

public DeleteTask ( System.Guid taskId ) : System.Guid
taskId System.Guid
return System.Guid

DeleteTaskAsync() public method

public DeleteTaskAsync ( System.Guid taskId ) : Task
taskId System.Guid
return Task

GetOperationStatus() public method

public GetOperationStatus ( System.Guid operationId, bool blocked = false ) : OperationStatus
operationId System.Guid
blocked bool
return Aditi.Scheduler.Models.OperationStatus

GetOperationStatusAsync() public method

public GetOperationStatusAsync ( System.Guid operationId, bool blocked = false ) : Task
operationId System.Guid
blocked bool
return Task

GetTask() public method

public GetTask ( System.Guid taskId ) : TaskModel
taskId System.Guid
return Aditi.Scheduler.Models.TaskModel

GetTaskAsync() public method

public GetTaskAsync ( System.Guid taskId ) : Task
taskId System.Guid
return Task

GetTaskHistory() public method

public GetTaskHistory ( System.Guid taskId, string token = null ) : WebhookAuditResult
taskId System.Guid
token string
return Aditi.Scheduler.Models.WebhookAuditResult

GetTaskHistoryAsync() public method

public GetTaskHistoryAsync ( string taskId, string token = null ) : Task
taskId string
token string
return Task

GetTasks() public method

public GetTasks ( ) : IEnumerable
return IEnumerable

GetTasksAsync() public method

public GetTasksAsync ( ) : Task>
return Task>

ScheduledTasks() public method

public ScheduledTasks ( Uri uri, string subscriptionId, string secretKey ) : System
uri System.Uri
subscriptionId string
secretKey string
return System

ScheduledTasks() public method

public ScheduledTasks ( string subscriptionId, string secretKey ) : System
subscriptionId string
secretKey string
return System

UpdateTask() public method

Thrown when Task model is invalid
public UpdateTask ( TaskModel task ) : System.Guid
task Aditi.Scheduler.Models.TaskModel
return System.Guid

UpdateTaskAsync() public method

Thrown when Task model is invalid
public UpdateTaskAsync ( TaskModel task ) : Task
task Aditi.Scheduler.Models.TaskModel
return Task