Skip to content

IAdmScheduledTask2

The IAdmScheduledTask2 interface extends the IAdmScheduledTask interface with the possibility to specify the Adaxes service on which a Scheduled Task will be executed and abort execution of a running Scheduled Task.

Inheritance: The IAdmScheduledTask2 interface inherits from the IAdmScheduledTask interface.

Methods

  • Method

  • Description

  • Abort()

  • Aborts execution of the Scheduled Task.

Properties

  • Property

  • Description

  • OwnerServiceDnsHostName

  • Gets or sets the DNS host name of the Adaxes service instance on which the Scheduled Task is executed.

  • IsOwnerServicePermanent

  • If the property is set to TRUE, the Scheduled Task will always be run on the Adaxes service instance specified in the OwnerServiceDnsHostName property and will never be reassigned to another instance.

  • LastRunStartDateTime

  • Gets the date and time when execution of the Scheduled Task was last started.

  • LastRunFinishDateTime

  • Gets the date and time when the Scheduled Task was last completed.

Details

Abort()

Aborts execution of the Scheduled Task. If the Scheduled Task is not running at the moment, the method does nothing.

void Abort()

OwnerServiceDnsHostName

Gets or sets the DNS host name of the Adaxes service instance on which the Scheduled Task is executed.

  • Type:
  • String
  • Access:
  • Read/Write

Remarks

If the property is set to NULL, the Adaxes service instance will be selected automatically.


IsOwnerServicePermanent

If the property is set to TRUE, the Scheduled Task will always be run on the Adaxes service instance specified by the OwnerServiceDnsHostName property and will never be reassigned to another instance.

  • Type:
  • Boolean
  • Access:
  • Read/Write

LastRunStartDateTime

Gets the date and time when execution of the Scheduled Task was last started.

  • Type:
  • DateTime
  • Access:
  • Read-only

Remarks

  • If the Scheduled Task was never started, the property gets DateTime.MinValue.
  • The property gets the date and time in the local time zone of the computer where Adaxes service is running.

LastRunFinishDateTime

Gets the date and time when the Scheduled Task was last completed.

  • Type:
  • DateTime
  • Access:
  • Read-only

Remarks

  • If the Scheduled Task execution was started, but has not yet completed, the property gets DateTime.MinValue.
  • The property gets the date and time in the local time zone of the computer where Adaxes service is running.

Requirements

Minimum required version: 2013.2

See also