Table of Contents

Class CloudService

Namespace
Coherence.Cloud
Assembly
Coherence.Runtime.dll

Runtime API to be able to interface with an Organization and Project from the coherence Cloud. Check the coherence Cloud tab in the coherence Hub window for more details.

public class CloudService
Inheritance
CloudService
Extension Methods

Constructors

CloudService(string, bool, IRuntimeSettings)

public CloudService(string uniqueId = null, bool autoLoginAsGuest = true, IRuntimeSettings runtimeSettings = null)

Parameters

uniqueId string
autoLoginAsGuest bool
runtimeSettings IRuntimeSettings

Properties

GameServers

GameServers REST service that controls game servers in the specified coherence Project from the RuntimeSettings.

public IGameServersService GameServers { get; }

Property Value

IGameServersService

GameServices

Collection of Game Services that you can interact with in the coherence Dashboard under the Game Services section of your project.

public GameServices GameServices { get; }

Property Value

GameServices

IsConnectedToCloud

Returns true when the Web Socket is connected.

public bool IsConnectedToCloud { get; }

Property Value

bool

IsLoggedIn

Returns true when the Web Socket is connected and when we are logged in to coherence Cloud.

public bool IsLoggedIn { get; }

Property Value

bool

Rooms

Rooms REST service to fetch, create and delete rooms in the specified coherence Project from the RuntimeSettings.

public CloudRooms Rooms { get; }

Property Value

CloudRooms

RuntimeSettings

RuntimeSettings that you pass through the constructor, if none is specified, RuntimeSettings.Instance will be used.

public IRuntimeSettings RuntimeSettings { get; }

Property Value

IRuntimeSettings

Worlds

Worlds REST service to fetch the available worlds that are online in the specified coherence Project from the RuntimeSettings.

public WorldsService Worlds { get; }

Property Value

WorldsService

Methods

Dispose()

public void Dispose()

WaitForCloudServiceLoginAsync(int)

Async method you can use to wait for the CloudService to be ready.

public Task<bool> WaitForCloudServiceLoginAsync(int millisecondsPollDelay)

Parameters

millisecondsPollDelay int

Returns

Task<bool>

Returns true when the CloudService is ready.

WaitForCloudServiceLoginRoutine()

IEnumerator you can use to wait for the CloudService to be ready within a Coroutine.

public IEnumerator WaitForCloudServiceLoginRoutine()

Returns

IEnumerator