docs.unity.cn
    Show / Hide Table of Contents

    Method AddHostingService

    AddHostingService(Type, String)

    Add a new hosting service instance of the given type. The serviceType must implement the IHostingService interface, or an is thrown.

    Declaration
    public IHostingService AddHostingService(Type serviceType, string name)
    Parameters
    Type Name Description
    Type serviceType

    A object for the service. Must implement IHostingService

    String name

    A descriptive name for the new service instance.

    Returns
    Type Description
    IHostingService
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use