Share via


ScheduledJob Class

 

Provides a base class for scheduled jobs to be executed as part of the service.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.ScheduledJob

Syntax

public abstract class ScheduledJob : IScheduledJob, IDisposable
public ref class ScheduledJob abstract : IScheduledJob, IDisposable
[<AbstractClass>]
type ScheduledJob = 
    class
        interface IScheduledJob
        interface IDisposable
    end
Public MustInherit Class ScheduledJob
    Implements IScheduledJob, IDisposable

Constructors

Name Description
System_CAPS_protmethod ScheduledJob()

Creates a new instance of the ScheduledJob class.

Properties

Name Description
System_CAPS_pubproperty CancellationToken

Gets a CancellationToken indicating whether the scheduled job has been cancelled. Scheduled jobs that run for an extended amount of time should listen to this token to see if they are being cancelled.

System_CAPS_pubproperty Services

Gets or sets the ApiServices associated with this ScheduledJob.

Methods

Name Description
System_CAPS_pubmethod Dispose()

Releases the unmanaged resources and disposes of the managed resources used by this ScheduledJob instance. When the job completes this method is called automatically by the infrastructure.

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources used by this ScheduledJob instance and optionally disposes of the managed resources. Override this method to dispose additional resources specific to this particular ScheduledJob implementation.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod 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 M:CancellationToken property.

System_CAPS_pubmethod ExecuteAsync(ScheduledJobDescriptor, CancellationToken)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod Initialize(ScheduledJobDescriptor, CancellationToken)

Initializes this ScheduledJob before execution begins.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top