Sage Modeling and Simulation Library

IResourceManager..::..Acquire Method

Tries to acquire a resource that satisfies the specified resource request.

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

Syntax


bool Acquire(
	IResourceRequest resourceRequest,
	bool blockAwaitingAcquisition
)

Parameters

resourceRequest
Type: Highpoint.Sage.Resources..::..IResourceRequest
The resource request.
blockAwaitingAcquisition
Type: Boolean
if set to true the event thread will block awaiting acquisition of a resource.

Return Value

true if a satisfactory resource was acquired, false otherwise.