docs.unity3d.com
    Show / Hide Table of Contents

    Class CloudOrganizationProvider

    A class that provides access to a user's organizations.

    Inheritance
    Object
    CloudOrganizationProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Assets
    Syntax
    public sealed class CloudOrganizationProvider : IOrganizationProvider

    Constructors

    CloudOrganizationProvider(IServiceHttpClient, IServiceHostResolver)

    Initializes a new instance of the CloudOrganizationProvider class.

    Declaration
    public CloudOrganizationProvider(IServiceHttpClient serviceHttpClient, IServiceHostResolver serviceHostResolver)
    Parameters
    Type Name Description
    IServiceHttpClient serviceHttpClient

    The IServiceHttpClient used to fetch the data.

    IServiceHostResolver serviceHostResolver

    The IServiceHostResolver object.

    Methods

    GetOrganizationsAsync(CancellationToken)

    Implement this method to get the collection of IOrganization the current user belongs to.

    Declaration
    public async Task<IOrganization[]> GetOrganizationsAsync(CancellationToken token)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<IOrganization[]>

    A task whose result is an array of IOrganization.

    Implements
    IOrganizationProvider.GetOrganizationsAsync(CancellationToken)
    Back to top
    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