Export (0) Print
Expand All

DataServiceHost Constructor

Instantiates DataServiceHost for WCF Data Services.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

public DataServiceHost(
	Type serviceType,
	Uri[] baseAddresses


Type: System.Type
Identifies the WCF Data Services to the host.
Type: System.Uri[]
The URI of the host.

WCF Data Services defines a generic hosting interface IDataServiceHost that abstracts its implementation from a specific host. This allows WCF Data Services to run in a range of hosting environments. This interface should not be confused with DataServiceHost, which instead handles registration and activation for the service. A default IDataServiceHost is used in this case.

© 2015 Microsoft