Sage Modeling and Simulation Library

SelfManagingResource..::..Reserve Method

Attempts to reserve this resource using the provided IResourceRequest.

Namespace:  Highpoint.Sage.Resources
Assembly:  Sage4 (in Sage4.dll)

Syntax


public bool Reserve(
	IResourceRequest resourceRequest,
	bool blockAwaitingAcquisition
)

Parameters

resourceRequest
Type: Highpoint.Sage.Resources..::..IResourceRequest
The IResourceRequest that wants this resource.
blockAwaitingAcquisition
Type: Boolean
If true, this call will not return until the resource has been acquired.

Return Value

True if this resource was granted as a reservation to the IResourceRequest.