Table of Contents

FetchRegionsAsync

Methods
public Task<Region[]> FetchRegionsAsync(CancellationToken cancellationToken = default)

Fetches available regions and their associated ping servers asynchronously.

Parameters
Type Name Description
CancellationToken cancellationToken

Optional cancellation token to cancel the operation.

Returns
Type Description
Task<Region[]>

A task that represents the asynchronous operation. The task result contains a Coherence.Cloud.RegionFetchResponse with regions and ping servers.

Exceptions
Type Condition
TaskCanceledException

Thrown when the operation is cancelled.

ResponseDeserializationException

Thrown when the response cannot be deserialized.