Skip to content

ConsulBasedMembershipTable.ReadRowAsync(SiloAddress, CancellationToken)

ReadRowAsync(SiloAddress, CancellationToken)

View source
public Task<MembershipTableData> ReadRowAsync(SiloAddress siloAddress, CancellationToken cancellationToken = default(CancellationToken))
Atomically reads the Membership Table information about a given silo. The returned MembershipTableData includes one MembershipEntry entry for a given silo and the TableVersion for this table. The MembershipEntry and the TableVersion have to be read atomically.

Parameters

siloAddressSiloAddress
The address of the silo to read.
cancellationTokenCancellationToken
A token which cancels the operation.

Returns

The membership information for a given silo: MembershipTableData consisting one MembershipEntry entry and TableVersion, read atomically.