Sage Modeling and Simulation Library

IResourceRequest..::..Reserve Method

Reserves a resource from the specified resource manager, or the provided default manager, if none is provided in this call.

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


bool Reserve(
	IResourceManager resourceManager,
	bool blockAwaitingReservation


Type: Highpoint.Sage.Resources..::..IResourceManager
The resource manager from which the resource is desired. Can be null, if a default manager has been provided.
Type: Boolean
If true, this call blocks until the resource is available.

Return Value

true if the reservation was successful, false otherwise.