Skip to content

ConsulBasedMembershipTable.ReadAllAsync(IConsulClient, string, string?, ILogger, string?, CancellationToken)

ReadAllAsync(IConsulClient, string, string?, ILogger, string?, CancellationToken)

static
View source
public static Task<MembershipTableData> ReadAllAsync(IConsulClient consulClient, string clusterId, string? kvRootFolder, ILogger logger, string? versionKey, CancellationToken cancellationToken = default(CancellationToken))
Reads all membership entries for a cluster from Consul.

Parameters

consulClientIConsulClient
The Consul client.
clusterIdstring
The cluster identifier.
kvRootFolderstring?
The optional root folder containing Orleans keys.
loggerILogger
The logger.
versionKeystring?
The key containing the membership table version, or null to use the cluster's default version key.
cancellationTokenCancellationToken
A token which cancels the operation.

Returns

The cluster membership entries and table version.