Share via


ScheduledJob.ExecuteAsync Method

Definition

Overloads

ExecuteAsync()

When implemented in a derived class, executes the scheduled job asynchronously. Implementations that want to know whether the scheduled job is being cancelled can get a CancellationToken from the CancellationToken property.

ExecuteAsync(ScheduledJobDescriptor, CancellationToken)

Executes the scheduled job provided a scheduledJobDescriptor and an cancellationToken.

ExecuteAsync()

When implemented in a derived class, executes the scheduled job asynchronously. Implementations that want to know whether the scheduled job is being cancelled can get a CancellationToken from the CancellationToken property.

public abstract System.Threading.Tasks.Task ExecuteAsync ();
abstract member ExecuteAsync : unit -> System.Threading.Tasks.Task
Public MustOverride Function ExecuteAsync () As Task

Returns

A Task representing the asynchronous operation.

Applies to

ExecuteAsync(ScheduledJobDescriptor, CancellationToken)

Executes the scheduled job provided a scheduledJobDescriptor and an cancellationToken.

public virtual 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
override this.ExecuteAsync : Microsoft.WindowsAzure.Mobile.Service.ScheduledJobs.ScheduledJobDescriptor * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable 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.

Implements

Applies to