Class ServiceHostResolver
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.To browse the .NET Framework source code for this type, see the Reference Source.
Implements
Inherited Members
Namespace: Unity.Cloud.Common
Assembly: solution.dll
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. |
GetResolvedDomainProvider()
Gets the resolved the ServiceDomainProvider.
Declaration
public ServiceDomainProvider GetResolvedDomainProvider()
Returns
| Type | Description |
|---|---|
| ServiceDomainProvider | The resolved service domain provider. |
GetResolvedEnvironment()
Gets the resolved ServiceEnvironment.
Declaration
public 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
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. |