Class AppInfoProvider
A class which provides access to App information as registered on the Unity Cloud Portal.
Inherited Members
Namespace: Unity.Cloud.Common
Syntax
public class AppInfoProvider : IAppInfoProvider
Constructors
AppInfoProvider(IServiceHttpClient, ServiceHostConfiguration)
Initializes and returns an instance of AppInfoProvider.
Declaration
public AppInfoProvider(IServiceHttpClient serviceHttpClient, ServiceHostConfiguration serviceHostConfiguration)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceHttpClient | serviceHttpClient | The HTTP client from which to request the app information. |
| ServiceHostConfiguration | serviceHostConfiguration | The configuration containing the service Url. |
Methods
GetAppInfoAsync(String)
Returns information related to an App registered on the Unity Cloud Portal.
Declaration
public async Task<AppInfo> GetAppInfoAsync(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id |
Returns
| Type | Description |
|---|---|
| Task<AppInfo> |
Implements
Exceptions
| Type | Condition |
|---|---|
| HttpRequestException | This exception is thrown when the request fails to complete. See returned StatusCode for more details. |
| UnauthorizedException | |
| ConnectionException | |
| ForbiddenException |
GetAppsInfoAsync(OrganizationId)
Get list of all apps inside an organization.
Declaration
public async Task<List<AppInfo>> GetAppsInfoAsync(OrganizationId userOrgId)
Parameters
| Type | Name | Description |
|---|---|---|
| OrganizationId | userOrgId |
Returns
| Type | Description |
|---|---|
| Task<List<AppInfo>> |
Implements
Remarks
Only apps that user has read access to will be returned.
Exceptions
| Type | Condition |
|---|---|
| HttpRequestException | This exception is thrown when the request fails to complete. See returned StatusCode for more details. |
| UnauthorizedException | |
| ConnectionException | |
| ForbiddenException |