C# Class Microsoft.ApplicationServer.Http.Activation.HttpQueryableServiceHost

Provides a custom service host that exposes the total count of a queryable resource query as an HTTP header named X-TotalCount and automatically used by the HttpEntityClient nuget.
Inheritance: Microsoft.ApplicationServer.Http.Activation.HttpConfigurableServiceHost
Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode Description
HttpQueryableServiceHost ( Type serviceType, int queryLimit, IHttpHostConfigurationBuilder builder ) : System

Initializes a new instance of the HttpQueryableServiceHost class.

HttpQueryableServiceHost ( object singletonInstance, int queryLimit, IHttpHostConfigurationBuilder builder ) : System

Initializes a new instance of the HttpQueryableServiceHost class.

Méthodes protégées

Méthode Description
OnOpening ( ) : void

Replaces the built-in HttpBehavior with our derived one.

Private Methods

Méthode Description
AddQueryMessageHandler ( IHttpHostConfigurationBuilder builder, int queryLimit ) : IHttpHostConfigurationBuilder
Configure ( IHttpHostConfigurationBuilder builder, int queryLimit ) : IHttpHostConfigurationBuilder

Method Details

HttpQueryableServiceHost() public méthode

Initializes a new instance of the HttpQueryableServiceHost class.
public HttpQueryableServiceHost ( Type serviceType, int queryLimit, IHttpHostConfigurationBuilder builder ) : System
serviceType System.Type
queryLimit int
builder IHttpHostConfigurationBuilder
Résultat System

HttpQueryableServiceHost() public méthode

Initializes a new instance of the HttpQueryableServiceHost class.
public HttpQueryableServiceHost ( object singletonInstance, int queryLimit, IHttpHostConfigurationBuilder builder ) : System
singletonInstance object
queryLimit int
builder IHttpHostConfigurationBuilder
Résultat System

OnOpening() protected méthode

Replaces the built-in HttpBehavior with our derived one.
protected OnOpening ( ) : void
Résultat void