RequestAuthority
method in Coherence.Toolkit.CoherenceSync
Methods
public void RequestAuthority(AuthorityType authorityType, Action<RequestAuthorityResult> onRequestFinished, CancellationToken cancellationToken = default)
Request authority over this entity.
Parameters
| Type | Name | Description |
|---|---|---|
| AuthorityType | authorityType | The type of control requested over the entity. This should not be None, nor match the current authority type. |
| Action<RequestAuthorityResult> | onRequestFinished | Callback invoked when the authority request has succeeded, failed, or been canceled. |
| CancellationToken | cancellationToken | Token that can be used to cancel the authority request. |