Interface IServiceHostResolver
Resolves the service host address and service requests URI.
Namespace: Unity.Cloud.Common
Assembly: Unity.Cloud.Common.dll
Syntax
public interface IServiceHostResolver
  Methods
GetResolvedAddress(ServiceProtocol)
Returns the service address for the specified protocol.
Declaration
string GetResolvedAddress(ServiceProtocol protocol = ServiceProtocol.Http)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ServiceProtocol | protocol | The web protocol.  | 
      
Returns
| Type | Description | 
|---|---|
| string | The service address.  | 
      
GetResolvedDomainProvider()
Gets the resolved the ServiceDomainProvider.
Declaration
[Obsolete("ServiceDomainProvider is available only when connecting to Unity Cloud Services. Use ServiceHostResolver.GetResolvedDomainProvider().")]
ServiceDomainProvider GetResolvedDomainProvider()
  Returns
| Type | Description | 
|---|---|
| ServiceDomainProvider | The resolved service domain provider.  | 
      
GetResolvedEnvironment()
Gets the resolved ServiceEnvironment.
Declaration
[Obsolete("ServiceEnvironment is available only when connecting to Unity Cloud Services. Use ServiceHostResolver.GetResolvedEnvironment().")]
ServiceEnvironment GetResolvedEnvironment()
  Returns
| Type | Description | 
|---|---|
| ServiceEnvironment | The resolved environment.  | 
      
GetResolvedRequestUri(string, ServiceProtocol)
Resolves and returns the request URI for the specified path and protocol.
Declaration
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.  |