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
Public method DataServiceHost Instantiates DataServiceHost for WCF Data Services.

Top

Properties

  Name Description
Public property Authentication (Inherited from ServiceHostBase.)
Public property Authorization (Inherited from ServiceHostBase.)
Public property BaseAddresses (Inherited from ServiceHostBase.)
Public property ChannelDispatchers (Inherited from ServiceHostBase.)
Public property CloseTimeout (Inherited from ServiceHostBase.)
Public property Credentials (Inherited from ServiceHostBase.)
Protected property DefaultCloseTimeout (Inherited from ServiceHostBase.)
Protected property DefaultOpenTimeout (Inherited from ServiceHostBase.)
Public property Description (Inherited from ServiceHostBase.)
Public property Extensions (Inherited from ServiceHostBase.)
Protected property ImplementedContracts (Inherited from ServiceHostBase.)
Protected property IsDisposed (Inherited from CommunicationObject.)
Public property ManualFlowControlLimit (Inherited from ServiceHostBase.)
Public property OpenTimeout (Inherited from ServiceHostBase.)
Public property SingletonInstance (Inherited from ServiceHost.)
Public property State (Inherited from CommunicationObject.)
Protected property ThisLock (Inherited from CommunicationObject.)

Top

Methods

  Name Description
Public method Abort (Inherited from CommunicationObject.)
Protected method AddBaseAddress (Inherited from ServiceHostBase.)
Public method AddDefaultEndpoints (Inherited from ServiceHostBase.)
Public method AddServiceEndpoint(ServiceEndpoint) (Inherited from ServiceHostBase.)
Public method AddServiceEndpoint(Type, Binding, String) (Inherited from ServiceHost.)
Public method AddServiceEndpoint(Type, Binding, Uri) (Inherited from ServiceHost.)
Public method AddServiceEndpoint(String, Binding, String) (Inherited from ServiceHostBase.)
Public method AddServiceEndpoint(String, Binding, Uri) (Inherited from ServiceHostBase.)
Public method AddServiceEndpoint(Type, Binding, String, Uri) (Inherited from ServiceHost.)
Public method AddServiceEndpoint(Type, Binding, Uri, Uri) (Inherited from ServiceHost.)
Public method AddServiceEndpoint(String, Binding, String, Uri) (Inherited from ServiceHostBase.)
Public method AddServiceEndpoint(String, Binding, Uri, Uri) (Inherited from ServiceHostBase.)
Protected method ApplyConfiguration (Inherited from ServiceHost.)
Public method BeginClose(AsyncCallback, Object) (Inherited from CommunicationObject.)
Public method BeginClose(TimeSpan, AsyncCallback, Object) (Inherited from CommunicationObject.)
Public method BeginOpen(AsyncCallback, Object) (Inherited from CommunicationObject.)
Public method BeginOpen(TimeSpan, AsyncCallback, Object) (Inherited from CommunicationObject.)
Public method Close() (Inherited from CommunicationObject.)
Public method Close(TimeSpan) (Inherited from CommunicationObject.)
Protected method CreateDescription (Inherited from ServiceHost.)
Public method EndClose (Inherited from CommunicationObject.)
Public method EndOpen (Inherited from CommunicationObject.)
Public method Equals (Inherited from Object.)
Protected method Fault (Inherited from CommunicationObject.)
Protected method Finalize (Inherited from Object.)
Protected method GetCommunicationObjectType (Inherited from CommunicationObject.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IncrementManualFlowControlLimit (Inherited from ServiceHostBase.)
Protected method InitializeDescription(UriSchemeKeyedCollection) (Inherited from ServiceHostBase.)
Protected method InitializeDescription(Object, UriSchemeKeyedCollection) (Inherited from ServiceHost.)
Protected method InitializeDescription(Type, UriSchemeKeyedCollection) (Inherited from ServiceHost.)
Protected method InitializeRuntime (Inherited from ServiceHostBase.)
Protected method LoadConfigurationSection (Inherited from ServiceHostBase.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnAbort (Inherited from ServiceHostBase.)
Protected method OnBeginClose (Inherited from ServiceHostBase.)
Protected method OnBeginOpen (Inherited from ServiceHostBase.)
Protected method OnClose (Inherited from ServiceHostBase.)
Protected method OnClosed (Inherited from ServiceHost.)
Protected method OnClosing (Inherited from CommunicationObject.)
Protected method OnEndClose (Inherited from ServiceHostBase.)
Protected method OnEndOpen (Inherited from ServiceHostBase.)
Protected method OnFaulted (Inherited from CommunicationObject.)
Protected method OnOpen (Inherited from ServiceHostBase.)
Protected method OnOpened (Inherited from ServiceHostBase.)
Protected method OnOpening (Inherited from WebServiceHost.)
Public method Open() (Inherited from CommunicationObject.)
Public method Open(TimeSpan) (Inherited from CommunicationObject.)
Protected method ReleasePerformanceCounters (Inherited from ServiceHostBase.)
Public method SetEndpointAddress (Inherited from ServiceHostBase.)
Protected method ThrowIfDisposed (Inherited from CommunicationObject.)
Protected method ThrowIfDisposedOrImmutable (Inherited from CommunicationObject.)
Protected method ThrowIfDisposedOrNotOpen (Inherited from CommunicationObject.)
Public method ToString (Inherited from Object.)

Top

Events

  Name Description
Public event Closed (Inherited from CommunicationObject.)
Public event Closing (Inherited from CommunicationObject.)
Public event Faulted (Inherited from CommunicationObject.)
Public event Opened (Inherited from CommunicationObject.)
Public event Opening (Inherited from CommunicationObject.)
Public event UnknownMessageReceived (Inherited from ServiceHostBase.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method 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.

See Also

Reference

System.Data.Services Namespace