Interface IAuthorityManagement
- Namespace
- Coherence.ProtocolDef
- Assembly
- Coherence.ProtocolDef.dll
public interface IAuthorityManagement
Methods
CreateAdoptOrphanCommand()
IEntityCommand CreateAdoptOrphanCommand()
Returns
CreateAuthorityRequest(Entity, ClientID, AuthorityType)
IEntityCommand CreateAuthorityRequest(Entity entity, ClientID requester, AuthorityType authorityType)
Parameters
entityEntityrequesterClientIDauthorityTypeAuthorityType
Returns
CreateAuthorityTransfer(Entity, ClientID, bool, AuthorityType)
IEntityCommand CreateAuthorityTransfer(Entity entity, ClientID newAuthority, bool accepted, AuthorityType authorityType)
Parameters
entityEntitynewAuthorityClientIDacceptedboolauthorityTypeAuthorityType
Returns
TryGetAuthorityRequestCommand(IEntityCommand, out ClientID, out AuthorityType)
bool TryGetAuthorityRequestCommand(IEntityCommand entityCommand, out ClientID requester, out AuthorityType authType)
Parameters
entityCommandIEntityCommandrequesterClientIDauthTypeAuthorityType
Returns
TryGetAuthorityTransferCommand(IEntityCommand, out ClientID, out bool, out AuthorityType)
bool TryGetAuthorityTransferCommand(IEntityCommand entityCommand, out ClientID newAuthority, out bool transferAccepted, out AuthorityType authType)
Parameters
entityCommandIEntityCommandnewAuthorityClientIDtransferAcceptedboolauthTypeAuthorityType