IJobSchedulerContextReserveResource Method (String, Int64)

Reserves the resource with the specified amount.
Namespace:  AGI.Parallel.Infrastructure
Assembly:  AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 1.3.0.366 (1.3.0.366)
Syntax
long ReserveResource(
        string resource,
        long amount
)

Parameters

resource
Type: SystemString
The resource. You can find common values for resources using ConsumableResources.
amount
Type: SystemInt64
The amount.

Return Value

Type: Int64
The resource amount currently consumed by the task.
Exceptions
Exception Condition
ArgumentNullException If resource is null.
ArgumentOutOfRangeException If amount if less than 0.
JobSchedulerException If error occurred during operation. For instance, there were not enough resources to satisfy reserve request.
Remarks
Blocks until the resource becomes available.
See Also

STK Scalability 1.3 API for .NET