docs.unity3d.com
    Show / Hide Table of Contents

    Class AppInfoProvider

    A class which provides access to App information as registered on the Unity Cloud Portal.

    Inheritance
    Object
    AppInfoProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    IAppInfoProvider.GetAppInfoAsync(String)
    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
    IAppInfoProvider.GetAppsInfoAsync(OrganizationId)
    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
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023