Class GenericWcfServiceHost<T>
Generic EPiServer WCf hosting class which take the configuration in the enterprise senario
Inheritance
System.Object
GenericWcfServiceHost<T>
Namespace: EPiServer.ServiceModel
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
public class GenericWcfServiceHost<T> : ServiceHost
Type Parameters
Name | Description |
---|---|
T |
Constructors
GenericWcfServiceHost()
Initializes a new instance of the GenericWcfServiceHost<T> class.
Declaration
public GenericWcfServiceHost()
GenericWcfServiceHost(Type)
Initializes a new instance of the GenericWcfServiceHost<T> class.
Declaration
public GenericWcfServiceHost(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceType | Type of the service. |
GenericWcfServiceHost(Type, Uri[])
Initializes a new instance of the GenericWcfServiceHost<T> class.
Declaration
public GenericWcfServiceHost(Type serviceType, params Uri[] baseAddresses)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceType | Type of the service. |
System.Uri[] | baseAddresses | The base addresses. |
Methods
ApplyConfiguration()
Loads the service description information from the configuration file and applies it to the runtime being constructed.
Declaration
protected override void ApplyConfiguration()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The description of the service hosted is null. |
OnOpen(TimeSpan)
Declaration
protected override void OnOpen(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeout |