Class ServiceHostConfigurationFactory
A factory class used to create a ServiceHostConfiguration.
Inherited Members
Namespace: Unity.Cloud.Common
Syntax
[Obsolete("Use ServiceHostResolverFactory instead.")]
public static class ServiceHostConfigurationFactory
Methods
Create()
Create a ServiceHostConfiguration with default values. Any system-level overrides set via environment variables will take priority.
Declaration
public static ServiceHostConfiguration Create()
Returns
Type | Description |
---|---|
ServiceHostConfiguration | The created configuration. |
CreateWithOverride(ServiceHost)
Create a ServiceHostConfiguration with an optional application-level override for service host options. Any system-level overrides set via environment variables will take priority.
Declaration
public static ServiceHostConfiguration CreateWithOverride(ServiceHost applicationOverride)
Parameters
Type | Name | Description |
---|---|---|
ServiceHost | applicationOverride | An application-level override value for for service host options. |
Returns
Type | Description |
---|---|
ServiceHostConfiguration | The created configuration. |