RequestAuthorityAsync
method in Coherence.Toolkit.ICoherenceSync
Methods
Task<RequestAuthorityResult> RequestAuthorityAsync(AuthorityType authorityType, CancellationToken cancellationToken = default)
Requests authority over this entity.
Parameters
| Type | Name | Description |
|---|---|---|
| AuthorityType | authorityType | Type of authority transferred. |
| CancellationToken | cancellationToken | Token that can be used to cancel the authority request. |
Returns
| Type | Description |
|---|---|
| Task<RequestAuthorityResult> | Task representing the asynchronous operation. |
Remarks
Requires a valid CoherenceBridge instance to process the transfer request.