Interface ISceneProvider
This interface provides access to a list of IScene or a single one as the result of Task operations.
Namespace: Unity.Cloud.Storage
Syntax
public interface ISceneProvider
Methods
GetSceneAsync(SceneId)
Returns a task that results in a IScene when completed.
Declaration
Task<IScene> GetSceneAsync(SceneId sceneId)
Parameters
Type | Name | Description |
---|---|---|
SceneId | sceneId | A scene Id. |
Returns
Type | Description |
---|---|
Task<IScene> |
Exceptions
Type | Condition |
---|---|
HttpRequestException | Thrown when the request fails to complete. See the returned StatusCode for more details. |
UnauthorizedException | |
ConnectionException | |
ForbiddenException |
ListScenesAsync()
Asynchroniously requests a list of IScene.
Declaration
Task<IEnumerable<IScene>> ListScenesAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<IScene>> | Returns a task that results in a list of IScene when completed. |
Exceptions
Type | Condition |
---|---|
HttpRequestException | Thrown when the request fails to complete. See the returned StatusCode for more details. |
UnauthorizedException | |
ConnectionException | |
ForbiddenException |