IDataServiceHost IDataServiceHost IDataServiceHost IDataServiceHost Interface

Definition

Interface that specifies interactions between WCF Data Services and its hosting environment.

public interface class IDataServiceHost
public interface IDataServiceHost
type IDataServiceHost = interface
Public Interface IDataServiceHost
Derived

Remarks

Each component that hosts WCF Data Services, such as Windows Communication Foundation (WCF) must implement this interface. IDataServiceHost is the contract between WCF Data Services and its hosting environment. This abstraction allows the WCF Data Services runtime to be agnostic to any particular hosting environment. The interface provides WCF Data Services with access to inbound HTTP requests. A new object implementing this interface is instantiated for each HTTP request and is then used to inspect properties of the HTTP request and configure the HTTP response.

Properties

AbsoluteRequestUri AbsoluteRequestUri AbsoluteRequestUri AbsoluteRequestUri

Gets an absolute URI that is the URI as sent by the client.

AbsoluteServiceUri AbsoluteServiceUri AbsoluteServiceUri AbsoluteServiceUri

Gets an absolute URI that is the root URI of the data service.

RequestAccept RequestAccept RequestAccept RequestAccept

The transport protocol specified by the request accept header.

RequestAcceptCharSet RequestAcceptCharSet RequestAcceptCharSet RequestAcceptCharSet

Gets a string representing the value of the Accept-Charset HTTP header.

RequestContentType RequestContentType RequestContentType RequestContentType

Gets the transport protocol specified by the content type header.

RequestHttpMethod RequestHttpMethod RequestHttpMethod RequestHttpMethod

Gets the request method of GET, PUT, POST, or DELETE.

RequestIfMatch RequestIfMatch RequestIfMatch RequestIfMatch

Gets the value for the If-Match header on the current request.

RequestIfNoneMatch RequestIfNoneMatch RequestIfNoneMatch RequestIfNoneMatch

Gets the value for the If-None-Match header on the current request.

RequestMaxVersion RequestMaxVersion RequestMaxVersion RequestMaxVersion

Gets the value that identifies the highest version that the request client is able to process.

RequestStream RequestStream RequestStream RequestStream

Gets the stream that contains the HTTP request body.

RequestVersion RequestVersion RequestVersion RequestVersion

Gets the value that identifies the version of the request that the client submitted, possibly null.

ResponseCacheControl ResponseCacheControl ResponseCacheControl ResponseCacheControl

Gets a string value that represents cache control information.

ResponseContentType ResponseContentType ResponseContentType ResponseContentType

Gets the transport protocol of the response.

ResponseETag ResponseETag ResponseETag ResponseETag

Gets an eTag value that represents the state of data in response.

ResponseLocation ResponseLocation ResponseLocation ResponseLocation

Gets or sets the service location.

ResponseStatusCode ResponseStatusCode ResponseStatusCode ResponseStatusCode

Gets or sets the response code that indicates results of query.

ResponseStream ResponseStream ResponseStream ResponseStream

Gets the response stream to which the HTTP response body will be written.

ResponseVersion ResponseVersion ResponseVersion ResponseVersion

Gets the version used by the host in the response.

Methods

GetQueryStringItem(String) GetQueryStringItem(String) GetQueryStringItem(String) GetQueryStringItem(String)

Gets a data item identified by the identity key contained by the parameter of the method.

ProcessException(HandleExceptionArgs) ProcessException(HandleExceptionArgs) ProcessException(HandleExceptionArgs) ProcessException(HandleExceptionArgs)

Handles a data service exception using information in the args parameter.

Applies to