Sage Modeling and Simulation Library

SelfManagingResource..::..Acquire Method

Attempts to acquire this resource using the provided IResourceRequest.

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

Syntax


public bool Acquire(
	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 to the IResourceRequest.