docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ServiceHostResolverFactory

    A factory to create a IServiceHostResolver for the Unity services gateway or for a fully qualified domain name.

    Inheritance
    object
    ServiceHostResolverFactory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Common
    Assembly: Unity.Cloud.Common.dll
    Syntax
    public static class ServiceHostResolverFactory

    Methods

    Create()

    Create a IServiceHostResolver. Default to the Unity services gateway. Any system-level overrides for a fully qualified domain name set via environment variables will take priority.

    Declaration
    public static IServiceHostResolver Create()
    Returns
    Type Description
    IServiceHostResolver

    The created IServiceHostResolver.

    CreateForFullyQualifiedDomainName(string, string)

    Create a IServiceHostResolver that always resolve the domain to the fully qualified name and API route prefix provided in its constructor.

    Declaration
    public static IServiceHostResolver CreateForFullyQualifiedDomainName(string fullyQualifiedDomainName, string pathPrefix = "/")
    Parameters
    Type Name Description
    string fullyQualifiedDomainName

    The fully qualified domain name.

    string pathPrefix

    The optional path prefix.

    Returns
    Type Description
    IServiceHostResolver

    The created IServiceHostResolver.

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