Sage Modeling and Simulation Library

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

Reserves 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)


public bool Reserve(
	IResourceRequest resourceRequest,
	bool blockAwaitingAcquisition


Type: Highpoint.Sage.Resources..::..IResourceRequest
The IResourceRequest that specifies the criteria by which to select the resource.
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.