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
entity
Entityrequester
ClientIDauthorityType
AuthorityType
Returns
CreateAuthorityTransfer(Entity, ClientID, bool, AuthorityType)
IEntityCommand CreateAuthorityTransfer(Entity entity, ClientID newAuthority, bool accepted, AuthorityType authorityType)
Parameters
entity
EntitynewAuthority
ClientIDaccepted
boolauthorityType
AuthorityType
Returns
TryGetAuthorityRequestCommand(IEntityCommand, out ClientID, out AuthorityType)
bool TryGetAuthorityRequestCommand(IEntityCommand entityCommand, out ClientID requester, out AuthorityType authType)
Parameters
entityCommand
IEntityCommandrequester
ClientIDauthType
AuthorityType
Returns
TryGetAuthorityTransferCommand(IEntityCommand, out ClientID, out bool, out AuthorityType)
bool TryGetAuthorityTransferCommand(IEntityCommand entityCommand, out ClientID newAuthority, out bool transferAccepted, out AuthorityType authType)
Parameters
entityCommand
IEntityCommandnewAuthority
ClientIDtransferAccepted
boolauthType
AuthorityType