Table of Contents

ForClient

Methods
public static CloudService ForClient(IRuntimeSettings runtimeSettings = null)

Creates a standalone CloudService for a client.

Parameters
Type Name Description
IRuntimeSettings runtimeSettings

Settings to use. If null, Coherence.RuntimeSettings.Instance is used.

Returns
Type Description
CloudService

A new CloudService owned by the caller.

Remarks

The returned instance is owned by the caller, who is responsible for disposing it. When used within Unity's MonoBehaviour lifecycle, a using statements might not be enough to ensure disposal. In such cases, dispose manually on deactivation, destruction, application quit event, or alike.