IDataServiceHost Interface
Definição
A interface que especifica as interações entre o WCF Data Services e o seu ambiente de hospedagem.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
- Derivado
Comentários
Cada componente que hospeda WCF Data Services, como o Windows Communication Foundation (WCF) deve implementar essa interface.Each component that hosts WCF Data Services, such as Windows Communication Foundation (WCF) must implement this interface. IDataServiceHost é o contrato entre WCF Data Services e seu ambiente de hospedagem.IDataServiceHost is the contract between WCF Data Services and its hosting environment. Essa abstração permite que o tempo de execução de WCF Data Services seja independente de qualquer ambiente de hospedagem específico.This abstraction allows the WCF Data Services runtime to be agnostic to any particular hosting environment. A interface fornece WCF Data Services com acesso a solicitações HTTP de entrada.The interface provides WCF Data Services with access to inbound HTTP requests. Um novo objeto que implementa essa interface é instanciado para cada solicitação HTTP e, em seguida, é usado para inspecionar as propriedades da solicitação HTTP e configurar a resposta HTTP.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.
Propriedades
| AbsoluteRequestUri |
Obtém um URI absoluto que é o URI conforme enviado pelo cliente.Gets an absolute URI that is the URI as sent by the client. |
| AbsoluteServiceUri |
Obtém um URI absoluto que é o URI raiz do serviço de dados.Gets an absolute URI that is the root URI of the data service. |
| RequestAccept |
O protocolo de transporte especificado pelo cabeçalho de aceitação da solicitação.The transport protocol specified by the request accept header. |
| RequestAcceptCharSet |
Obtém uma cadeia de caracteres que representa o valor do cabeçalho HTTP |
| RequestContentType |
Obtém o protocolo de transporte especificado pelo cabeçalho do tipo de conteúdo.Gets the transport protocol specified by the content type header. |
| RequestHttpMethod |
Obtém o método de solicitação de GET, PUT, POST ou DELETE.Gets the request method of GET, PUT, POST, or DELETE. |
| RequestIfMatch |
Obtém o valor para o cabeçalho If-Match na solicitação atual.Gets the value for the If-Match header on the current request. |
| RequestIfNoneMatch |
Obtém o valor para o cabeçalho If-None-Match na solicitação atual.Gets the value for the If-None-Match header on the current request. |
| RequestMaxVersion |
Obtém o valor que identifica a versão mais recente que o cliente da solicitação é capaz de processar.Gets the value that identifies the highest version that the request client is able to process. |
| RequestStream |
Obtém o fluxo que contém o corpo da solicitação HTTP.Gets the stream that contains the HTTP request body. |
| RequestVersion |
Obtém o valor que identifica a versão da solicitação que o cliente enviou, possivelmente nulo.Gets the value that identifies the version of the request that the client submitted, possibly null. |
| ResponseCacheControl |
Obtém um valor de cadeia de caracteres que representa as informações de controle de cache.Gets a string value that represents cache control information. |
| ResponseContentType |
Obtém o protocolo de transporte da resposta.Gets the transport protocol of the response. |
| ResponseETag |
Obtém um valor de eTag que representa o estado dos dados em resposta.Gets an eTag value that represents the state of data in response. |
| ResponseLocation |
Obtém ou define o local do serviço.Gets or sets the service location. |
| ResponseStatusCode |
Obtém ou define o código de resposta que indica os resultados da consulta.Gets or sets the response code that indicates results of query. |
| ResponseStream |
Obtém o fluxo de resposta para o qual o corpo de resposta HTTP será gravado.Gets the response stream to which the HTTP response body will be written. |
| ResponseVersion |
Obtém a versão usada pelo host na resposta.Gets the version used by the host in the response. |
Métodos
| GetQueryStringItem(String) |
Obtém um item de dados identificado pela chave de identidade contida pelo parâmetro do método.Gets a data item identified by the identity key contained by the parameter of the method. |
| ProcessException(HandleExceptionArgs) |
Trata uma exceção de serviço de dados usando informações no parâmetro |