IScheduledJob.ExecuteAsync(ScheduledJobDescriptor, CancellationToken) Method

Definition

Executes the scheduled job provided a scheduledJobDescriptor and an cancellationToken.

public System.Threading.Tasks.Task ExecuteAsync (Microsoft.WindowsAzure.Mobile.Service.ScheduledJobs.ScheduledJobDescriptor scheduledJobDescriptor, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteAsync : Microsoft.WindowsAzure.Mobile.Service.ScheduledJobs.ScheduledJobDescriptor * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExecuteAsync (scheduledJobDescriptor As ScheduledJobDescriptor, cancellationToken As CancellationToken) As Task

Parameters

scheduledJobDescriptor
ScheduledJobDescriptor

Contains information about the scheduled job such as the type, the name, etc.

cancellationToken
CancellationToken

A cancellation token allowing the scheduled job to be cancelled.

Returns

A Task representing the execution of the scheduled job.

Applies to