Sage Modeling and Simulation Library

MaterialResourceItem..::..Acquire Method (IResourceRequest, Boolean)

Acquires a resource according to the specified resource request, either blocking until successful, or returning <null> if the resource is not immediately available.

Namespace:  Highpoint.Sage.Materials.Chemistry
Assembly:  Sage4 (in Sage4.dll)

Syntax


public bool Acquire(
	IResourceRequest resourceRequest,
	bool blockAwaitingAcquisition
)

Parameters

resourceRequest
Type: Highpoint.Sage.Resources..::..IResourceRequest
The IResourceRequest that specifies the criteria by which to select the resource.
blockAwaitingAcquisition
Type: Boolean
If true, request will suspend until granted. If false, will return false if unable to fulfill.

Return Value

True if granted, false if not granted.