docs.unity3d.com
    Show / Hide Table of Contents

    Class ServiceHostResolver

    Resolves the service environment and domain provider for the application.

    Inheritance
    Object
    ServiceHostResolver
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Common
    Syntax
    public class ServiceHostResolver : IServiceHostResolver

    Methods

    GetResolvedAddress(ServiceProtocol)

    Returns the service address for the specified inputs.

    Declaration
    public string GetResolvedAddress(ServiceProtocol protocol = ServiceProtocol.Http)
    Parameters
    Type Name Description
    ServiceProtocol protocol

    The web protocol.

    Returns
    Type Description
    String

    The service address.

    Implements
    IServiceHostResolver.GetResolvedAddress(ServiceProtocol)

    GetResolvedDomainProvider()

    Gets the resolved the ServiceDomainProvider.

    Declaration
    public ServiceDomainProvider GetResolvedDomainProvider()
    Returns
    Type Description
    ServiceDomainProvider

    The resolved service domain provider.

    Implements
    IServiceHostResolver.GetResolvedDomainProvider()

    GetResolvedEnvironment()

    Gets the resolved ServiceEnvironment.

    Declaration
    public ServiceEnvironment GetResolvedEnvironment()
    Returns
    Type Description
    ServiceEnvironment

    The resolved environment.

    Implements
    IServiceHostResolver.GetResolvedEnvironment()

    GetResolvedRequestUri(String, ServiceProtocol)

    Resolves and returns the request URI for the specified path and protocol.

    Declaration
    public string GetResolvedRequestUri(string path, ServiceProtocol protocol = ServiceProtocol.Http)
    Parameters
    Type Name Description
    String path

    The request path.

    ServiceProtocol protocol

    The web protocol.

    Returns
    Type Description
    String

    The Uri string.

    Implements
    IServiceHostResolver.GetResolvedRequestUri(String, ServiceProtocol)
    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