Export (0) Print
Expand All

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].

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

[CLSCompliantAttribute(false)]
public class DataServiceHost : WebServiceHost

The DataServiceHost type exposes the following members.

  NameDescription
Public methodDataServiceHostInstantiates DataServiceHost for WCF Data Services.
Top

  NameDescription
Protected methodOnOpening (Inherited from WebServiceHost.)
Top

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).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft