docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CoreRegistration

    Handle to a registered IInitializablePackage. Provides a fluent interface to define its components dependencies and provisions.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Services.Core.Internal
    Assembly: Unity.Services.Core.Internal.dll
    Syntax
    public readonly struct CoreRegistration

    Methods

    DependsOn<T>()

    Declare the given component type a dependency of the handled package.

    Declaration
    public CoreRegistration DependsOn<T>() where T : IServiceComponent
    Returns
    Type Description
    CoreRegistration

    Return this registration.

    Type Parameters
    Name Description
    T

    The type of IServiceComponent to declare as a dependency for the handled package.

    OptionallyDependsOn<T>()

    Declare the given component type an optional dependency of the handled package.

    Declaration
    public CoreRegistration OptionallyDependsOn<T>() where T : IServiceComponent
    Returns
    Type Description
    CoreRegistration

    Return this registration.

    Type Parameters
    Name Description
    T

    The type of IServiceComponent to declare as an optional dependency for the handled package.

    ProvidesComponent<T>()

    Declare the given component type a provided component by the handled package.

    Declaration
    public CoreRegistration ProvidesComponent<T>() where T : IServiceComponent
    Returns
    Type Description
    CoreRegistration

    Return this registration.

    Type Parameters
    Name Description
    T

    The type of IServiceComponent to declare provided by the handled package.

    In This Article
    Back to top
    Copyright © 2024 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)