Class SceneProvider
Inherited Members
Namespace: Unity.Cloud.Storage
Syntax
public class SceneProvider : ISceneProvider
Constructors
SceneProvider(IServiceHttpClient, ServiceHostConfiguration)
Returns a SceneProvider using an IServiceHttpClient instance.
Declaration
public SceneProvider(IServiceHttpClient serviceHttpClient, ServiceHostConfiguration serviceHostConfiguration)
Parameters
Type | Name | Description |
---|---|---|
IServiceHttpClient | serviceHttpClient | A IServiceHttpClient instance. |
ServiceHostConfiguration | serviceHostConfiguration | A configuration instance. |
Methods
GetSceneAsync(SceneId)
Returns a task that results in a IScene when completed.
Declaration
public async Task<IScene> GetSceneAsync(SceneId sceneId)
Parameters
Type | Name | Description |
---|---|---|
SceneId | sceneId | A scene Id. |
Returns
Type | Description |
---|---|
Task<IScene> |
Implements
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
public async Task<IEnumerable<IScene>> ListScenesAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<IScene>> | Returns a task that results in a list of IScene when completed. |
Implements
Exceptions
Type | Condition |
---|---|
HttpRequestException | Thrown when the request fails to complete. See the returned StatusCode for more details. |
UnauthorizedException | |
ConnectionException | |
ForbiddenException |