docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ServiceHostResolverExtensions

    Helper methods for IServiceHostResolver.

    Inheritance
    object
    ServiceHostResolverExtensions
    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 ServiceHostResolverExtensions

    Methods

    CreateCopyWithDomainResolverOverride(IServiceHostResolver, IServiceDomainResolver)

    Creates a copy of the serviceHostResolver with the given domainResolverOverride.

    Declaration
    [Obsolete("Deprecated. Use the extension method specialized for ServiceHostResolver instances.")]
    public static IServiceHostResolver CreateCopyWithDomainResolverOverride(this IServiceHostResolver serviceHostResolver, IServiceDomainResolver domainResolverOverride)
    Parameters
    Type Name Description
    IServiceHostResolver serviceHostResolver

    The IServiceHostResolver to copy.

    IServiceDomainResolver domainResolverOverride

    The IServiceDomainResolver to initialize the copy with.

    Returns
    Type Description
    IServiceHostResolver
    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if either serviceHostResolver or domainResolverOverride are null.

    InvalidOperationException

    Thrown if the serviceHostResolver is not an instance of ServiceHostResolver or if the domainResolverOverride is not an instance of ServiceDomainResolver.

    CreateCopyWithDomainResolverOverride(ServiceHostResolver, ServiceDomainResolver)

    Creates a copy of the serviceHostResolver with the given domainResolverOverride.

    Declaration
    public static IServiceHostResolver CreateCopyWithDomainResolverOverride(this ServiceHostResolver serviceHostResolver, ServiceDomainResolver domainResolverOverride)
    Parameters
    Type Name Description
    ServiceHostResolver serviceHostResolver

    The ServiceHostResolver to copy.

    ServiceDomainResolver domainResolverOverride

    The ServiceDomainResolver to initialize the copy with.

    Returns
    Type Description
    IServiceHostResolver
    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if either serviceHostResolver or domainResolverOverride are null.

    GetResolvedHost(IServiceHostResolver)

    Gets the resolved host for the IServiceHostResolver.

    Declaration
    public static string GetResolvedHost(this IServiceHostResolver serviceHostResolver)
    Parameters
    Type Name Description
    IServiceHostResolver serviceHostResolver

    The IServiceHostResolver to get the resolved host from.

    Returns
    Type Description
    string

    The resolved host.

    GetResolvedServiceHost(IServiceHostResolver)

    Returns an instance of ServiceHost initialized with values resolved from the serviceHostResolver.

    Declaration
    [Obsolete("Deprecated. Use the extension method specialized for ServiceHostResolver instances.")]
    public static ServiceHost GetResolvedServiceHost(this IServiceHostResolver serviceHostResolver)
    Parameters
    Type Name Description
    IServiceHostResolver serviceHostResolver

    The IServiceHostResolver from which to create a ServiceHost.

    Returns
    Type Description
    ServiceHost
    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if serviceHostResolver is null.

    InvalidOperationException

    Thrown if the serviceHostResolver is not an instance of ServiceHostResolver.

    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)