Checks capability on agents which meets the specified precondition.
Namespace: AGI.Parallel.Client
Assembly: AGI.Parallel.Client (in AGI.Parallel.Client.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
IEnumerable<AgentCheckCapabilityResult> CheckCapability(
        ICapabilityCheck check,
        IList<TaskPrecondition> preconditions
)
Visual Basic
Function CheckCapability ( _
        check As ICapabilityCheck, _
        preconditions As IList(Of TaskPrecondition) _
) As IEnumerable(Of AgentCheckCapabilityResult)

Parameters

check
Type: ICapabilityCheck
The capability check.
preconditions
Type: System.Collections.Generic..::..IList<(Of <(<'TaskPrecondition>)>)>
The capabilities preconditions.

Return Value

Results from the check capability.

Exceptions

Exception Condition
AGI.Parallel.Client..::..JobSchedulerException Thrown if client is not connected to the job scheduler yet.
System..::..ArgumentNullException if check parameter is null

See Also