Table of Contents

Interface IAuthorityManagement

Namespace
Coherence.ProtocolDef
Assembly
Coherence.ProtocolDef.dll
public interface IAuthorityManagement

Methods

CreateAdoptOrphanCommand()

IEntityCommand CreateAdoptOrphanCommand()

Returns

IEntityCommand

CreateAuthorityRequest(Entity, ClientID, AuthorityType)

IEntityCommand CreateAuthorityRequest(Entity entity, ClientID requester, AuthorityType authorityType)

Parameters

entity Entity
requester ClientID
authorityType AuthorityType

Returns

IEntityCommand

CreateAuthorityTransfer(Entity, ClientID, bool, AuthorityType)

IEntityCommand CreateAuthorityTransfer(Entity entity, ClientID newAuthority, bool accepted, AuthorityType authorityType)

Parameters

entity Entity
newAuthority ClientID
accepted bool
authorityType AuthorityType

Returns

IEntityCommand

TryGetAuthorityRequestCommand(IEntityCommand, out ClientID, out AuthorityType)

bool TryGetAuthorityRequestCommand(IEntityCommand entityCommand, out ClientID requester, out AuthorityType authType)

Parameters

entityCommand IEntityCommand
requester ClientID
authType AuthorityType

Returns

bool

TryGetAuthorityTransferCommand(IEntityCommand, out ClientID, out bool, out AuthorityType)

bool TryGetAuthorityTransferCommand(IEntityCommand entityCommand, out ClientID newAuthority, out bool transferAccepted, out AuthorityType authType)

Parameters

entityCommand IEntityCommand
newAuthority ClientID
transferAccepted bool
authType AuthorityType

Returns

bool