Table of Contents

Delegate CoherenceSync.OnAuthorityRequestedHandler

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll

The delegate type of OnAuthorityRequested.

public delegate bool CoherenceSync.OnAuthorityRequestedHandler(ClientID requesterID, AuthorityType authorityType, CoherenceSync sync)

Parameters

requesterID ClientID

The ClientID of the requesting client.

authorityType AuthorityType
The delegate type of .
sync CoherenceSync

The entity that the authority request is targeting.

Returns

bool

Return true to accept the request for authority.

Constructors

OnAuthorityRequestedHandler(object, IntPtr)

public OnAuthorityRequestedHandler(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(ClientID, AuthorityType, CoherenceSync, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ClientID requesterID, AuthorityType authorityType, CoherenceSync sync, AsyncCallback callback, object @object)

Parameters

requesterID ClientID
authorityType AuthorityType
sync CoherenceSync
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual bool EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

bool

Invoke(ClientID, AuthorityType, CoherenceSync)

public virtual bool Invoke(ClientID requesterID, AuthorityType authorityType, CoherenceSync sync)

Parameters

requesterID ClientID
authorityType AuthorityType
sync CoherenceSync

Returns

bool