Class ServiceHostResolverFactory
A factory to create a IServiceHostResolver for the Unity services gateway or for a fully qualified domain name.
Inherited Members
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.  |