docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IServiceRegistration

    Interface for configuring service registration.

    Inherited Members
    IServiceInitialRegistration.AsService<TContract>()
    Namespace: Unity.Cloud.Collaboration.Services.ServicesContainer
    Assembly: Unity.Cloud.Collaboration.dll
    Syntax
    public interface IServiceRegistration : IServiceInitialRegistration

    Methods

    FromInstance(object)

    Registers an existing instance as a service.

    Declaration
    void FromInstance(object instance)
    Parameters
    Type Name Description
    object instance

    The instance to register.

    FromNew<TClass>()

    Creates a new instance of the specified class and registers it as a service.

    Declaration
    void FromNew<TClass>() where TClass : class
    Type Parameters
    Name Description
    TClass

    The class type to instantiate.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)