I​Application​Builder I​Application​Builder Interface

Definition

Defines a class that provides the mechanisms to configure an application's request pipeline.
public interface IApplicationBuilderPublic Interface IApplicationBuilder

Properties

ApplicationServices ApplicationServices

Gets or sets the System.IServiceProvider that provides access to the application's service container.
IServiceProvider ApplicationServices { get; set; }Property ApplicationServices As IServiceProvider
Value
System.IServiceProvider System.IServiceProvider

Properties Properties

Gets a key/value collection that can be used to share data between middleware.
IDictionary<string, object> Properties { get; }ReadOnly Property Properties As IDictionary(Of String, Object)
Value
System.Collections.Generic.IDictionary<System.String, System.Object> System.Collections.Generic.IDictionary(Of System.String, System.Object)

ServerFeatures ServerFeatures

Gets the set of HTTP features the application's server provides.
IFeatureCollection ServerFeatures { get; }ReadOnly Property ServerFeatures As IFeatureCollection
Value
IFeatureCollection IFeatureCollection

Methods

Build() Build()

Builds the delegate used by this application to process HTTP requests.
RequestDelegate Build()Function Build As RequestDelegate
Returns
The request handling delegate.

New() New()

Creates a new IApplicationBuilder that shares the Properties of this IApplicationBuilder.
IApplicationBuilder New()Function New As IApplicationBuilder
Returns

Use(Func<RequestDelegate, RequestDelegate>) Use(Func(Of RequestDelegate, RequestDelegate))

Adds a middleware delegate to the application's request pipeline.
IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware)Function Use(middleware As Func(Of RequestDelegate, RequestDelegate)) As IApplicationBuilder
Parameters
middleware
System.Func<RequestDelegate, RequestDelegate> System.Func(Of RequestDelegate, RequestDelegate)
The middleware delgate.
Returns