Class AppInfoProvider
A class which provides access to App information as registered on the Digital Twin Dashboard.
Inherited Members
Namespace: Unity.Cloud.Common
Syntax
public class AppInfoProvider : IAppInfoProvider
Constructors
AppInfoProvider(IServiceHttpClient, IServiceHostResolver)
Initializes and returns an instance of AppInfoProvider.
Declaration
public AppInfoProvider(IServiceHttpClient serviceHttpClient, IServiceHostResolver serviceHostResolver)
Parameters
Type | Name | Description |
---|---|---|
IServiceHttpClient | serviceHttpClient | The HTTP client from which to request the app information. |
IServiceHostResolver | serviceHostResolver | The service host resolver for the service Url. |
Methods
GetAppInfoAsync(String)
Returns information related to an App registered on the Digital Twin Dashboard.
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 |