Export (0) Print
Expand All

TestConnection Method

IIS 7.0

Tests connectivity of the IIS Transform Manager service to the Scheduler object.

Namespace:  Microsoft.Web.Media.TransformManager
Assembly:  Microsoft.Web.Media.TransformManager.ServiceLibrary (in Microsoft.Web.Media.TransformManager.ServiceLibrary.dll)

[PrincipalPermissionAttribute(SecurityAction.Demand, Role = "Administrators")]
public bool TestConnection(
	JobScheduler scheduler,
	Credential credential
)

Parameters

scheduler
Type: Microsoft.Web.Media.TransformManager..::..JobScheduler
The Scheduler object to test.
credential
Type: Microsoft.Web.Media.TransformManager..::..Credential
The Credential object that is required in order to run jobs and access resources.

Return Value

Type: System..::..Boolean
true if the IIS Transform Manager service can connect to the Scheduler object; otherwise, false.

Implements

IManagementService..::..TestConnection(JobScheduler, Credential)

ExceptionCondition
InvalidOperationException

The test connection is not valid for the local scheduler.

FileNotFoundException

The HPC client utilities are not installed.

InvalidDataException

The scheduler is not responding.

By default, IIS Transform Manager uses the task scheduler on the local server, but it also supports using HPC. A credential is required in order to run jobs and access resources on the HPC cluster. That credential can be different from the credential that the IIS Transform Manager service is running under on the local server.

Show:
© 2015 Microsoft