Class ServiceHostResolver
Resolves the service environment and domain provider for the application.
Inherited Members
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
GetResolvedDomainProvider()
Gets the resolved the ServiceDomainProvider.
Declaration
public ServiceDomainProvider GetResolvedDomainProvider()
Returns
Type | Description |
---|---|
ServiceDomainProvider | The resolved service domain provider. |
Implements
GetResolvedEnvironment()
Gets the resolved ServiceEnvironment.
Declaration
public ServiceEnvironment GetResolvedEnvironment()
Returns
Type | Description |
---|---|
ServiceEnvironment | The resolved environment. |
Implements
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. |