requestResources Method
Request the locks and/or Codes that will be required to carry out the intended write operations. This is a convenience method. It builds the requests and then sends them to the iModel server.
requestResources(ctx: AuthorizedClientRequestContext, elements: ConcurrencyControl.ElementAndOpcode[], models?: ConcurrencyControl.ModelAndOpcode[], relationships?: ConcurrencyControl.RelationshipAndOpcode[]): Promise<void>
Parameter | Type | Description |
---|---|---|
ctx | AuthorizedClientRequestContext | RequestContext |
elements | ConcurrencyControl.ElementAndOpcode[] | The elements that will be written |
models | ConcurrencyControl.ModelAndOpcode[] | The models that will be written |
relationships | ConcurrencyControl.RelationshipAndOpcode[] | The relationships that will be written See ConcurrencyControl.requestResourcesForInsert, ConcurrencyControl.requestResourcesForUpdate, ConcurrencyControl.requestResourcesForDelete |
Defined in
Last Updated: 05 June, 2020