CloudService
Properties
public CloudService CloudService { get; set; }
Service to communicate with the coherence Cloud.
Property Value
| Type | Description |
|---|---|
| CloudService |
Remarks
You must have signed in and selected an Organization and Project in the coherence Hub window, and be connected with a logged-in player account. to be able to use cloud services.
When 'Player Account' is set to 'Auto Login As Guest', the bridge will use the cloud services of the logged-in guest player account.
When 'Player Account' is set to 'Main', the bridge will use the cloud services of the main player account after an operation to log into coherence Cloud has been initiated anywhere in the codebase.
When 'Player Account' is set to 'None', The bridge can be connected with a PlayerAccount by assigning its cloud services to the CoherenceBridge.CloudService property.
Do not dispose the returned instance yourself. When the bridge created it (or borrows it from the main PlayerAccount), it is owned and disposed by the bridge (or that player account) when the bridge is destroyed. If instead you assign your own instance to this property, the bridge only borrows it and will not dispose it — you remain responsible for disposing it. Create your own with ForClient(IRuntimeSettings) if you need an instance whose lifetime you control.