DataServiceHost Class
The WCF Data Services class derived from WebServiceHost used to instantiate data services.
This API is not CLS-compliant. The CLS-compliant alternative is [None].
Inheritance Hierarchy
System.Object
System.ServiceModel.Channels.CommunicationObject
System.ServiceModel.ServiceHostBase
System.ServiceModel.ServiceHost
System.ServiceModel.Web.WebServiceHost
System.Data.Services.DataServiceHost
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Class DataServiceHost _
Inherits WebServiceHost
'Usage
Dim instance As DataServiceHost
[CLSCompliantAttribute(false)]
public class DataServiceHost : WebServiceHost
[CLSCompliantAttribute(false)]
public ref class DataServiceHost : public WebServiceHost
[<CLSCompliantAttribute(false)>]
type DataServiceHost =
class
inherit WebServiceHost
end
public class DataServiceHost extends WebServiceHost
The DataServiceHost type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataServiceHost | Instantiates DataServiceHost for WCF Data Services. |
Top
Properties
Name | Description | |
---|---|---|
Authentication | (Inherited from ServiceHostBase.) | |
Authorization | (Inherited from ServiceHostBase.) | |
BaseAddresses | (Inherited from ServiceHostBase.) | |
ChannelDispatchers | (Inherited from ServiceHostBase.) | |
CloseTimeout | (Inherited from ServiceHostBase.) | |
Credentials | (Inherited from ServiceHostBase.) | |
DefaultCloseTimeout | (Inherited from ServiceHostBase.) | |
DefaultOpenTimeout | (Inherited from ServiceHostBase.) | |
Description | (Inherited from ServiceHostBase.) | |
Extensions | (Inherited from ServiceHostBase.) | |
ImplementedContracts | (Inherited from ServiceHostBase.) | |
IsDisposed | (Inherited from CommunicationObject.) | |
ManualFlowControlLimit | (Inherited from ServiceHostBase.) | |
OpenTimeout | (Inherited from ServiceHostBase.) | |
SingletonInstance | (Inherited from ServiceHost.) | |
State | (Inherited from CommunicationObject.) | |
ThisLock | (Inherited from CommunicationObject.) |
Top
Methods
Top
Events
Name | Description | |
---|---|---|
Closed | (Inherited from CommunicationObject.) | |
Closing | (Inherited from CommunicationObject.) | |
Faulted | (Inherited from CommunicationObject.) | |
Opened | (Inherited from CommunicationObject.) | |
Opening | (Inherited from CommunicationObject.) | |
UnknownMessageReceived | (Inherited from ServiceHostBase.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IDisposable.Dispose | (Inherited from ServiceHostBase.) |
Top
Remarks
WCF Data Services are not autonomous server entities. Instead, the service is a component hosted in an environment such as the Windows Communication Foundation (WCF) that provides core server networking facilities. Specifically, a service does not bind to and listen on a network socket for incoming requests to its Representational State Transfer (REST) entry points. The host handles direct interactions with the network and support caching, scalability, and authentication modules.
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. For more information, see Hosting the Data Service (WCF Data Services).
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.