ApplicationBuilder ApplicationBuilder ApplicationBuilder ApplicationBuilder ApplicationBuilder Class

Definition

public ref class ApplicationBuilder : Microsoft::AspNetCore::Builder::IApplicationBuilder
[Windows::Foundation::Metadata::WebHostHidden]
class ApplicationBuilder : Microsoft::AspNetCore::Builder::IApplicationBuilder
public class ApplicationBuilder : Microsoft.AspNetCore.Builder.IApplicationBuilder
type ApplicationBuilder = class
    interface IApplicationBuilder
Public Class ApplicationBuilder
Implements IApplicationBuilder
Inheritance
ApplicationBuilderApplicationBuilderApplicationBuilderApplicationBuilderApplicationBuilder
Implements

Constructors

ApplicationBuilder(IServiceProvider) ApplicationBuilder(IServiceProvider) ApplicationBuilder(IServiceProvider) ApplicationBuilder(IServiceProvider) ApplicationBuilder(IServiceProvider)
ApplicationBuilder(IServiceProvider, Object) ApplicationBuilder(IServiceProvider, Object) ApplicationBuilder(IServiceProvider, Object) ApplicationBuilder(IServiceProvider, Object) ApplicationBuilder(IServiceProvider, Object)

Properties

ApplicationServices ApplicationServices ApplicationServices ApplicationServices ApplicationServices
Properties Properties Properties Properties Properties
ServerFeatures ServerFeatures ServerFeatures ServerFeatures ServerFeatures

Methods

Build() Build() Build() Build() Build()
New() New() New() New() New()
Use(Func<RequestDelegate,RequestDelegate>) Use(Func<RequestDelegate,RequestDelegate>) Use(Func<RequestDelegate,RequestDelegate>) Use(Func<RequestDelegate,RequestDelegate>) Use(Func<RequestDelegate,RequestDelegate>)

Extension Methods

UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder) UseRequestLocalization(IApplicationBuilder)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions) UseRequestLocalization(IApplicationBuilder, RequestLocalizationOptions)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>) UseRequestLocalization(IApplicationBuilder, Action<RequestLocalizationOptions>)

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[]) UseRequestLocalization(IApplicationBuilder, String[])

Adds the RequestLocalizationMiddleware to automatically set culture information for requests based on information provided by the client.

UseAuthentication(IApplicationBuilder) UseAuthentication(IApplicationBuilder) UseAuthentication(IApplicationBuilder) UseAuthentication(IApplicationBuilder) UseAuthentication(IApplicationBuilder)

Adds the AuthenticationMiddleware to the specified IApplicationBuilder, which enables authentication capabilities.

UseBrowserLink(IApplicationBuilder) UseBrowserLink(IApplicationBuilder) UseBrowserLink(IApplicationBuilder) UseBrowserLink(IApplicationBuilder) UseBrowserLink(IApplicationBuilder)

This method is called to enable Browser Link in an application. It registers a factory method that creates BrowserLinkMiddleware for each request.

UseIdentity(IApplicationBuilder) UseIdentity(IApplicationBuilder) UseIdentity(IApplicationBuilder) UseIdentity(IApplicationBuilder) UseIdentity(IApplicationBuilder)

This method is obsolete and will be removed in a future version. The recommended alternative is UseAuthentication(IApplicationBuilder)

Enables ASP.NET identity for the current application.

UseClaimsTransformation(IApplicationBuilder) UseClaimsTransformation(IApplicationBuilder) UseClaimsTransformation(IApplicationBuilder) UseClaimsTransformation(IApplicationBuilder) UseClaimsTransformation(IApplicationBuilder)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions) UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions) UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions) UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions) UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

UseClaimsTransformation(IApplicationBuilder, Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>) UseClaimsTransformation(IApplicationBuilder, Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>) UseClaimsTransformation(IApplicationBuilder, Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>) UseClaimsTransformation(IApplicationBuilder, Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>) UseClaimsTransformation(IApplicationBuilder, Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

UseConnections(IApplicationBuilder, Action<ConnectionsRouteBuilder>) UseConnections(IApplicationBuilder, Action<ConnectionsRouteBuilder>) UseConnections(IApplicationBuilder, Action<ConnectionsRouteBuilder>) UseConnections(IApplicationBuilder, Action<ConnectionsRouteBuilder>) UseConnections(IApplicationBuilder, Action<ConnectionsRouteBuilder>)
UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder)

UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Adds the CookieAuthenticationMiddleware middleware to the specified IApplicationBuilder, which enables cookie authentication capabilities.

UseCookiePolicy(IApplicationBuilder) UseCookiePolicy(IApplicationBuilder) UseCookiePolicy(IApplicationBuilder) UseCookiePolicy(IApplicationBuilder) UseCookiePolicy(IApplicationBuilder)

Adds the CookiePolicyMiddleware handler to the specified IApplicationBuilder, which enables cookie policy capabilities.

UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions) UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions) UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions) UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions) UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions)

Adds the CookiePolicyMiddleware handler to the specified IApplicationBuilder, which enables cookie policy capabilities.

UseCors(IApplicationBuilder) UseCors(IApplicationBuilder) UseCors(IApplicationBuilder) UseCors(IApplicationBuilder) UseCors(IApplicationBuilder)

Adds a CORS middleware to your web application pipeline to allow cross domain requests.

UseCors(IApplicationBuilder, Action<CorsPolicyBuilder>) UseCors(IApplicationBuilder, Action<CorsPolicyBuilder>) UseCors(IApplicationBuilder, Action<CorsPolicyBuilder>) UseCors(IApplicationBuilder, Action<CorsPolicyBuilder>) UseCors(IApplicationBuilder, Action<CorsPolicyBuilder>)

Adds a CORS middleware to your web application pipeline to allow cross domain requests.

UseCors(IApplicationBuilder, String) UseCors(IApplicationBuilder, String) UseCors(IApplicationBuilder, String) UseCors(IApplicationBuilder, String) UseCors(IApplicationBuilder, String)

Adds a CORS middleware to your web application pipeline to allow cross domain requests.

UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder)

Enables default file mapping on the current path

UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions)

Enables default file mapping with the given options

UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String)

Enables default file mapping for the given request path

UseDeveloperExceptionPage(IApplicationBuilder) UseDeveloperExceptionPage(IApplicationBuilder) UseDeveloperExceptionPage(IApplicationBuilder) UseDeveloperExceptionPage(IApplicationBuilder) UseDeveloperExceptionPage(IApplicationBuilder)

Captures synchronous and asynchronous Exception instances from the pipeline and generates HTML error responses.

UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions) UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions) UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions) UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions) UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions)

Captures synchronous and asynchronous Exception instances from the pipeline and generates HTML error responses.

UseDirectoryBrowser(IApplicationBuilder) UseDirectoryBrowser(IApplicationBuilder) UseDirectoryBrowser(IApplicationBuilder) UseDirectoryBrowser(IApplicationBuilder) UseDirectoryBrowser(IApplicationBuilder)

Enable directory browsing on the current path

UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions)

Enable directory browsing with the given options

UseDirectoryBrowser(IApplicationBuilder, String) UseDirectoryBrowser(IApplicationBuilder, String) UseDirectoryBrowser(IApplicationBuilder, String) UseDirectoryBrowser(IApplicationBuilder, String) UseDirectoryBrowser(IApplicationBuilder, String)

Enables directory browsing for the given request path

UseElmCapture(IApplicationBuilder) UseElmCapture(IApplicationBuilder) UseElmCapture(IApplicationBuilder) UseElmCapture(IApplicationBuilder) UseElmCapture(IApplicationBuilder)

Enables the Elm logging service, which can be accessed via the ElmPageMiddleware.

UseElmPage(IApplicationBuilder) UseElmPage(IApplicationBuilder) UseElmPage(IApplicationBuilder) UseElmPage(IApplicationBuilder) UseElmPage(IApplicationBuilder)

Enables viewing logs captured by the ElmCaptureMiddleware.

UseExceptionHandler(IApplicationBuilder) UseExceptionHandler(IApplicationBuilder) UseExceptionHandler(IApplicationBuilder) UseExceptionHandler(IApplicationBuilder) UseExceptionHandler(IApplicationBuilder)

Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request will not be re-executed if the response has already started.

UseExceptionHandler(IApplicationBuilder, ExceptionHandlerOptions) UseExceptionHandler(IApplicationBuilder, ExceptionHandlerOptions) UseExceptionHandler(IApplicationBuilder, ExceptionHandlerOptions) UseExceptionHandler(IApplicationBuilder, ExceptionHandlerOptions) UseExceptionHandler(IApplicationBuilder, ExceptionHandlerOptions)

Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request will not be re-executed if the response has already started.

UseExceptionHandler(IApplicationBuilder, Action<IApplicationBuilder>) UseExceptionHandler(IApplicationBuilder, Action<IApplicationBuilder>) UseExceptionHandler(IApplicationBuilder, Action<IApplicationBuilder>) UseExceptionHandler(IApplicationBuilder, Action<IApplicationBuilder>) UseExceptionHandler(IApplicationBuilder, Action<IApplicationBuilder>)

Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request will not be re-executed if the response has already started.

UseExceptionHandler(IApplicationBuilder, String) UseExceptionHandler(IApplicationBuilder, String) UseExceptionHandler(IApplicationBuilder, String) UseExceptionHandler(IApplicationBuilder, String) UseExceptionHandler(IApplicationBuilder, String)

Adds a middleware to the pipeline that will catch exceptions, log them, reset the request path, and re-execute the request. The request will not be re-executed if the response has already started.

UseFacebookAuthentication(IApplicationBuilder) UseFacebookAuthentication(IApplicationBuilder) UseFacebookAuthentication(IApplicationBuilder) UseFacebookAuthentication(IApplicationBuilder) UseFacebookAuthentication(IApplicationBuilder)

UseFacebookAuthentication is obsolete. Configure Facebook authentication with AddAuthentication().AddFacebook in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions)

UseFacebookAuthentication is obsolete. Configure Facebook authentication with AddAuthentication().AddFacebook in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions) UseFacebookAuthentication(IApplicationBuilder, FacebookOptions)

Adds the FacebookMiddleware middleware to the specified IApplicationBuilder, which enables Facebook authentication capabilities.

UseFileServer(IApplicationBuilder) UseFileServer(IApplicationBuilder) UseFileServer(IApplicationBuilder) UseFileServer(IApplicationBuilder) UseFileServer(IApplicationBuilder)

Enable all static file middleware (except directory browsing) for the current request path in the current directory.

UseFileServer(IApplicationBuilder, FileServerOptions) UseFileServer(IApplicationBuilder, FileServerOptions) UseFileServer(IApplicationBuilder, FileServerOptions) UseFileServer(IApplicationBuilder, FileServerOptions) UseFileServer(IApplicationBuilder, FileServerOptions)

Enable all static file middleware with the given options

UseFileServer(IApplicationBuilder, Boolean) UseFileServer(IApplicationBuilder, Boolean) UseFileServer(IApplicationBuilder, Boolean) UseFileServer(IApplicationBuilder, Boolean) UseFileServer(IApplicationBuilder, Boolean)

Enable all static file middleware on for the current request path in the current directory.

UseFileServer(IApplicationBuilder, String) UseFileServer(IApplicationBuilder, String) UseFileServer(IApplicationBuilder, String) UseFileServer(IApplicationBuilder, String) UseFileServer(IApplicationBuilder, String)

Enables all static file middleware (except directory browsing) for the given request path from the directory of the same name

UseForwardedHeaders(IApplicationBuilder) UseForwardedHeaders(IApplicationBuilder) UseForwardedHeaders(IApplicationBuilder) UseForwardedHeaders(IApplicationBuilder) UseForwardedHeaders(IApplicationBuilder)

Forwards proxied headers onto current request

UseForwardedHeaders(IApplicationBuilder, ForwardedHeadersOptions) UseForwardedHeaders(IApplicationBuilder, ForwardedHeadersOptions) UseForwardedHeaders(IApplicationBuilder, ForwardedHeadersOptions) UseForwardedHeaders(IApplicationBuilder, ForwardedHeadersOptions) UseForwardedHeaders(IApplicationBuilder, ForwardedHeadersOptions)

Forwards proxied headers onto current request

UseGoogleAuthentication(IApplicationBuilder) UseGoogleAuthentication(IApplicationBuilder) UseGoogleAuthentication(IApplicationBuilder) UseGoogleAuthentication(IApplicationBuilder) UseGoogleAuthentication(IApplicationBuilder)

UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions) UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

Adds the GoogleMiddleware middleware to the specified IApplicationBuilder, which enables Google authentication capabilities.

UseHostFiltering(IApplicationBuilder) UseHostFiltering(IApplicationBuilder) UseHostFiltering(IApplicationBuilder) UseHostFiltering(IApplicationBuilder) UseHostFiltering(IApplicationBuilder)

Adds middleware for filtering requests by allowed host headers. Invalid requests will be rejected with a 400 status code.

UseHsts(IApplicationBuilder) UseHsts(IApplicationBuilder) UseHsts(IApplicationBuilder) UseHsts(IApplicationBuilder) UseHsts(IApplicationBuilder)

Adds middleware for using HSTS, which adds the Strict-Transport-Security header.

UseHttpMethodOverride(IApplicationBuilder) UseHttpMethodOverride(IApplicationBuilder) UseHttpMethodOverride(IApplicationBuilder) UseHttpMethodOverride(IApplicationBuilder) UseHttpMethodOverride(IApplicationBuilder)

Allows incoming POST request to override method type with type specified in header.

UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions) UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions) UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions) UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions) UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions)

Allows incoming POST request to override method type with type specified in form.

UseHttpsRedirection(IApplicationBuilder) UseHttpsRedirection(IApplicationBuilder) UseHttpsRedirection(IApplicationBuilder) UseHttpsRedirection(IApplicationBuilder) UseHttpsRedirection(IApplicationBuilder)

Adds middleware for redirecting HTTP Requests to HTTPS.

UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder)

UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

Adds the JwtBearerMiddleware middleware to the specified IApplicationBuilder, which enables Bearer token processing capabilities. This middleware understands appropriately formatted and secured tokens which appear in the request header. If the Options.AuthenticationMode is Active, the claims within the bearer token are added to the current request's IPrincipal User. If the Options.AuthenticationMode is Passive, then the current request is not modified, but IAuthenticationManager AuthenticateAsync may be used at any time to obtain the claims from the request's bearer token. See also http://tools.ietf.org/html/rfc6749

Map(IApplicationBuilder, PathString, Action<IApplicationBuilder>) Map(IApplicationBuilder, PathString, Action<IApplicationBuilder>) Map(IApplicationBuilder, PathString, Action<IApplicationBuilder>) Map(IApplicationBuilder, PathString, Action<IApplicationBuilder>) Map(IApplicationBuilder, PathString, Action<IApplicationBuilder>)

Branches the request pipeline based on matches of the given request path. If the request path starts with the given path, the branch is executed.

MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>)

Branches the request pipeline based on the result of the given predicate.

UseMicrosoftAccountAuthentication(IApplicationBuilder) UseMicrosoftAccountAuthentication(IApplicationBuilder) UseMicrosoftAccountAuthentication(IApplicationBuilder) UseMicrosoftAccountAuthentication(IApplicationBuilder) UseMicrosoftAccountAuthentication(IApplicationBuilder)

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions) UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

Adds the MicrosoftAccountMiddleware middleware to the specified IApplicationBuilder, which enables Microsoft Account authentication capabilities.

UseMvc(IApplicationBuilder) UseMvc(IApplicationBuilder) UseMvc(IApplicationBuilder) UseMvc(IApplicationBuilder) UseMvc(IApplicationBuilder)

Adds MVC to the IApplicationBuilder request execution pipeline.

UseMvc(IApplicationBuilder, Action<IRouteBuilder>) UseMvc(IApplicationBuilder, Action<IRouteBuilder>) UseMvc(IApplicationBuilder, Action<IRouteBuilder>) UseMvc(IApplicationBuilder, Action<IRouteBuilder>) UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Adds MVC to the IApplicationBuilder request execution pipeline.

UseMvcWithDefaultRoute(IApplicationBuilder) UseMvcWithDefaultRoute(IApplicationBuilder) UseMvcWithDefaultRoute(IApplicationBuilder) UseMvcWithDefaultRoute(IApplicationBuilder) UseMvcWithDefaultRoute(IApplicationBuilder)

Adds MVC to the IApplicationBuilder request execution pipeline with a default route named 'default' and the following template: '{controller=Home}/{action=Index}/{id?}'.

UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder)

UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Adds the OAuthMiddleware<TOptions> middleware to the specified IApplicationBuilder, which enables OAuth 2.0 authentication capabilities.

UseOpenIdConnectAuthentication(IApplicationBuilder) UseOpenIdConnectAuthentication(IApplicationBuilder) UseOpenIdConnectAuthentication(IApplicationBuilder) UseOpenIdConnectAuthentication(IApplicationBuilder) UseOpenIdConnectAuthentication(IApplicationBuilder)

UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

Adds the OpenIdConnectMiddleware middleware to the specified IApplicationBuilder, which enables OpenID Connect authentication capabilities.

UseOwin(IApplicationBuilder) UseOwin(IApplicationBuilder) UseOwin(IApplicationBuilder) UseOwin(IApplicationBuilder) UseOwin(IApplicationBuilder)
UseOwin(IApplicationBuilder, Action<Action<Func<Func<IDictionary<String,Object>,Task>,Func<IDictionary<String,Object>,Task>>>>) UseOwin(IApplicationBuilder, Action<Action<Func<Func<IDictionary<String,Object>,Task>,Func<IDictionary<String,Object>,Task>>>>) UseOwin(IApplicationBuilder, Action<Action<Func<Func<IDictionary<String,Object>,Task>,Func<IDictionary<String,Object>,Task>>>>) UseOwin(IApplicationBuilder, Action<Action<Func<Func<IDictionary<String,Object>,Task>,Func<IDictionary<String,Object>,Task>>>>) UseOwin(IApplicationBuilder, Action<Action<Func<Func<IDictionary<String,Object>,Task>,Func<IDictionary<String,Object>,Task>>>>)
RunProxy(IApplicationBuilder) RunProxy(IApplicationBuilder) RunProxy(IApplicationBuilder) RunProxy(IApplicationBuilder) RunProxy(IApplicationBuilder)

Sends request to remote server as specified in options

RunProxy(IApplicationBuilder, ProxyOptions) RunProxy(IApplicationBuilder, ProxyOptions) RunProxy(IApplicationBuilder, ProxyOptions) RunProxy(IApplicationBuilder, ProxyOptions) RunProxy(IApplicationBuilder, ProxyOptions)

Sends request to remote server as specified in options

UseResponseBuffering(IApplicationBuilder) UseResponseBuffering(IApplicationBuilder) UseResponseBuffering(IApplicationBuilder) UseResponseBuffering(IApplicationBuilder) UseResponseBuffering(IApplicationBuilder)

Enables full buffering of response bodies. This can be disabled on a per request basis using IHttpBufferingFeature.

UseResponseCaching(IApplicationBuilder) UseResponseCaching(IApplicationBuilder) UseResponseCaching(IApplicationBuilder) UseResponseCaching(IApplicationBuilder) UseResponseCaching(IApplicationBuilder)
UseResponseCompression(IApplicationBuilder) UseResponseCompression(IApplicationBuilder) UseResponseCompression(IApplicationBuilder) UseResponseCompression(IApplicationBuilder) UseResponseCompression(IApplicationBuilder)

Adds middleware for dynamically compressing HTTP Responses.

UseRewriter(IApplicationBuilder) UseRewriter(IApplicationBuilder) UseRewriter(IApplicationBuilder) UseRewriter(IApplicationBuilder) UseRewriter(IApplicationBuilder)

Checks if a given Url matches rules and conditions, and modifies the HttpContext on match.

UseRewriter(IApplicationBuilder, RewriteOptions) UseRewriter(IApplicationBuilder, RewriteOptions) UseRewriter(IApplicationBuilder, RewriteOptions) UseRewriter(IApplicationBuilder, RewriteOptions) UseRewriter(IApplicationBuilder, RewriteOptions)

Checks if a given Url matches rules and conditions, and modifies the HttpContext on match.

UseRouter(IApplicationBuilder, IRouter) UseRouter(IApplicationBuilder, IRouter) UseRouter(IApplicationBuilder, IRouter) UseRouter(IApplicationBuilder, IRouter) UseRouter(IApplicationBuilder, IRouter)

Adds a RouterMiddleware middleware to the specified IApplicationBuilder with the specified IRouter.

UseRouter(IApplicationBuilder, Action<IRouteBuilder>) UseRouter(IApplicationBuilder, Action<IRouteBuilder>) UseRouter(IApplicationBuilder, Action<IRouteBuilder>) UseRouter(IApplicationBuilder, Action<IRouteBuilder>) UseRouter(IApplicationBuilder, Action<IRouteBuilder>)

Adds a RouterMiddleware middleware to the specified IApplicationBuilder with the IRouter built from configured IRouteBuilder.

Run(IApplicationBuilder, RequestDelegate) Run(IApplicationBuilder, RequestDelegate) Run(IApplicationBuilder, RequestDelegate) Run(IApplicationBuilder, RequestDelegate) Run(IApplicationBuilder, RequestDelegate)

Adds a terminal middleware delegate to the application's request pipeline.

UseSession(IApplicationBuilder) UseSession(IApplicationBuilder) UseSession(IApplicationBuilder) UseSession(IApplicationBuilder) UseSession(IApplicationBuilder)

Adds the SessionMiddleware to automatically enable session state for the application.

UseSession(IApplicationBuilder, SessionOptions) UseSession(IApplicationBuilder, SessionOptions) UseSession(IApplicationBuilder, SessionOptions) UseSession(IApplicationBuilder, SessionOptions) UseSession(IApplicationBuilder, SessionOptions)

Adds the SessionMiddleware to automatically enable session state for the application.

UseSignalR(IApplicationBuilder, Action<HubRouteBuilder>) UseSignalR(IApplicationBuilder, Action<HubRouteBuilder>) UseSignalR(IApplicationBuilder, Action<HubRouteBuilder>) UseSignalR(IApplicationBuilder, Action<HubRouteBuilder>) UseSignalR(IApplicationBuilder, Action<HubRouteBuilder>)
UseSpa(IApplicationBuilder, Action<ISpaBuilder>) UseSpa(IApplicationBuilder, Action<ISpaBuilder>) UseSpa(IApplicationBuilder, Action<ISpaBuilder>) UseSpa(IApplicationBuilder, Action<ISpaBuilder>) UseSpa(IApplicationBuilder, Action<ISpaBuilder>)

Handles all requests from this point in the middleware chain by returning the default page for the Single Page Application (SPA).

This middleware should be placed late in the chain, so that other middleware for serving static files, MVC actions, etc., takes precedence.

UseStaticFiles(IApplicationBuilder) UseStaticFiles(IApplicationBuilder) UseStaticFiles(IApplicationBuilder) UseStaticFiles(IApplicationBuilder) UseStaticFiles(IApplicationBuilder)

Enables static file serving for the current request path

UseStaticFiles(IApplicationBuilder, StaticFileOptions) UseStaticFiles(IApplicationBuilder, StaticFileOptions) UseStaticFiles(IApplicationBuilder, StaticFileOptions) UseStaticFiles(IApplicationBuilder, StaticFileOptions) UseStaticFiles(IApplicationBuilder, StaticFileOptions)

Enables static file serving with the given options

UseStaticFiles(IApplicationBuilder, String) UseStaticFiles(IApplicationBuilder, String) UseStaticFiles(IApplicationBuilder, String) UseStaticFiles(IApplicationBuilder, String) UseStaticFiles(IApplicationBuilder, String)

Enables static file serving for the given request path

UseStatusCodePages(IApplicationBuilder) UseStatusCodePages(IApplicationBuilder) UseStatusCodePages(IApplicationBuilder) UseStatusCodePages(IApplicationBuilder) UseStatusCodePages(IApplicationBuilder)

Adds a StatusCodePages middleware with a default response handler that checks for responses with status codes between 400 and 599 that do not have a body.

UseStatusCodePages(IApplicationBuilder, StatusCodePagesOptions) UseStatusCodePages(IApplicationBuilder, StatusCodePagesOptions) UseStatusCodePages(IApplicationBuilder, StatusCodePagesOptions) UseStatusCodePages(IApplicationBuilder, StatusCodePagesOptions) UseStatusCodePages(IApplicationBuilder, StatusCodePagesOptions)

Adds a StatusCodePages middleware with the given options that checks for responses with status codes between 400 and 599 that do not have a body.

UseStatusCodePages(IApplicationBuilder, Action<IApplicationBuilder>) UseStatusCodePages(IApplicationBuilder, Action<IApplicationBuilder>) UseStatusCodePages(IApplicationBuilder, Action<IApplicationBuilder>) UseStatusCodePages(IApplicationBuilder, Action<IApplicationBuilder>) UseStatusCodePages(IApplicationBuilder, Action<IApplicationBuilder>)

Adds a StatusCodePages middleware to the pipeline with the specified alternate middleware pipeline to execute to generate the response body.

UseStatusCodePages(IApplicationBuilder, Func<StatusCodeContext,Task>) UseStatusCodePages(IApplicationBuilder, Func<StatusCodeContext,Task>) UseStatusCodePages(IApplicationBuilder, Func<StatusCodeContext,Task>) UseStatusCodePages(IApplicationBuilder, Func<StatusCodeContext,Task>) UseStatusCodePages(IApplicationBuilder, Func<StatusCodeContext,Task>)

Adds a StatusCodePages middleware with the specified handler that checks for responses with status codes between 400 and 599 that do not have a body.

UseStatusCodePages(IApplicationBuilder, String, String) UseStatusCodePages(IApplicationBuilder, String, String) UseStatusCodePages(IApplicationBuilder, String, String) UseStatusCodePages(IApplicationBuilder, String, String) UseStatusCodePages(IApplicationBuilder, String, String)

Adds a StatusCodePages middleware with the specified response body to send. This may include a '{0}' placeholder for the status code. The middleware checks for responses with status codes between 400 and 599 that do not have a body.

UseStatusCodePagesWithRedirects(IApplicationBuilder, String) UseStatusCodePagesWithRedirects(IApplicationBuilder, String) UseStatusCodePagesWithRedirects(IApplicationBuilder, String) UseStatusCodePagesWithRedirects(IApplicationBuilder, String) UseStatusCodePagesWithRedirects(IApplicationBuilder, String)

Adds a StatusCodePages middleware to the pipeline. Specifies that responses should be handled by redirecting with the given location URL template. This may include a '{0}' placeholder for the status code. URLs starting with '~' will have PathBase prepended, where any other URL will be used as is.

UseStatusCodePagesWithReExecute(IApplicationBuilder, String, String) UseStatusCodePagesWithReExecute(IApplicationBuilder, String, String) UseStatusCodePagesWithReExecute(IApplicationBuilder, String, String) UseStatusCodePagesWithReExecute(IApplicationBuilder, String, String) UseStatusCodePagesWithReExecute(IApplicationBuilder, String, String)

Adds a StatusCodePages middleware to the pipeline. Specifies that the response body should be generated by re-executing the request pipeline using an alternate path. This path may contain a '{0}' placeholder of the status code.

UseTwitterAuthentication(IApplicationBuilder) UseTwitterAuthentication(IApplicationBuilder) UseTwitterAuthentication(IApplicationBuilder) UseTwitterAuthentication(IApplicationBuilder) UseTwitterAuthentication(IApplicationBuilder)

UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions) UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

Adds the TwitterMiddleware middleware to the specified IApplicationBuilder, which enables Twitter authentication capabilities.

Use(IApplicationBuilder, Func<HttpContext,Func<Task>,Task>) Use(IApplicationBuilder, Func<HttpContext,Func<Task>,Task>) Use(IApplicationBuilder, Func<HttpContext,Func<Task>,Task>) Use(IApplicationBuilder, Func<HttpContext,Func<Task>,Task>) Use(IApplicationBuilder, Func<HttpContext,Func<Task>,Task>)

Adds a middleware delegate defined in-line to the application's request pipeline.

UseMiddleware(IApplicationBuilder, Type, Object[]) UseMiddleware(IApplicationBuilder, Type, Object[]) UseMiddleware(IApplicationBuilder, Type, Object[]) UseMiddleware(IApplicationBuilder, Type, Object[]) UseMiddleware(IApplicationBuilder, Type, Object[])

Adds a middleware type to the application's request pipeline.

UseMiddleware<TMiddleware>(IApplicationBuilder, Object[]) UseMiddleware<TMiddleware>(IApplicationBuilder, Object[]) UseMiddleware<TMiddleware>(IApplicationBuilder, Object[]) UseMiddleware<TMiddleware>(IApplicationBuilder, Object[]) UseMiddleware<TMiddleware>(IApplicationBuilder, Object[])

Adds a middleware type to the application's request pipeline.

UsePathBase(IApplicationBuilder, PathString) UsePathBase(IApplicationBuilder, PathString) UsePathBase(IApplicationBuilder, PathString) UsePathBase(IApplicationBuilder, PathString) UsePathBase(IApplicationBuilder, PathString)

Adds a middleware that extracts the specified path base from request path and postpend it to the request path base.

UseWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) UseWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) UseWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) UseWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) UseWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>)

Conditionally creates a branch in the request pipeline that is rejoined to the main pipeline.

UseWebpackDevMiddleware(IApplicationBuilder, WebpackDevMiddlewareOptions) UseWebpackDevMiddleware(IApplicationBuilder, WebpackDevMiddlewareOptions) UseWebpackDevMiddleware(IApplicationBuilder, WebpackDevMiddlewareOptions) UseWebpackDevMiddleware(IApplicationBuilder, WebpackDevMiddlewareOptions) UseWebpackDevMiddleware(IApplicationBuilder, WebpackDevMiddlewareOptions)

Enables Webpack dev middleware support. This hosts an instance of the Webpack compiler in memory in your application so that you can always serve up-to-date Webpack-built resources without having to run the compiler manually. Since the Webpack compiler instance is retained in memory, incremental compilation is vastly faster that re-running the compiler from scratch.

Incoming requests that match Webpack-built files will be handled by returning the Webpack compiler output directly, regardless of files on disk. If compilation is in progress when the request arrives, the response will pause until updated compiler output is ready.

UseWebSockets(IApplicationBuilder) UseWebSockets(IApplicationBuilder) UseWebSockets(IApplicationBuilder) UseWebSockets(IApplicationBuilder) UseWebSockets(IApplicationBuilder)
UseWebSockets(IApplicationBuilder, WebSocketOptions) UseWebSockets(IApplicationBuilder, WebSocketOptions) UseWebSockets(IApplicationBuilder, WebSocketOptions) UseWebSockets(IApplicationBuilder, WebSocketOptions) UseWebSockets(IApplicationBuilder, WebSocketOptions)
UseWelcomePage(IApplicationBuilder) UseWelcomePage(IApplicationBuilder) UseWelcomePage(IApplicationBuilder) UseWelcomePage(IApplicationBuilder) UseWelcomePage(IApplicationBuilder)

Adds the WelcomePageMiddleware to the pipeline.

UseWelcomePage(IApplicationBuilder, WelcomePageOptions) UseWelcomePage(IApplicationBuilder, WelcomePageOptions) UseWelcomePage(IApplicationBuilder, WelcomePageOptions) UseWelcomePage(IApplicationBuilder, WelcomePageOptions) UseWelcomePage(IApplicationBuilder, WelcomePageOptions)

Adds the WelcomePageMiddleware to the pipeline with the given options.

UseWelcomePage(IApplicationBuilder, PathString) UseWelcomePage(IApplicationBuilder, PathString) UseWelcomePage(IApplicationBuilder, PathString) UseWelcomePage(IApplicationBuilder, PathString) UseWelcomePage(IApplicationBuilder, PathString)

Adds the WelcomePageMiddleware to the pipeline with the given path.

UseWelcomePage(IApplicationBuilder, String) UseWelcomePage(IApplicationBuilder, String) UseWelcomePage(IApplicationBuilder, String) UseWelcomePage(IApplicationBuilder, String) UseWelcomePage(IApplicationBuilder, String)

Adds the WelcomePageMiddleware to the pipeline with the given path.

UseSpaStaticFiles(IApplicationBuilder) UseSpaStaticFiles(IApplicationBuilder) UseSpaStaticFiles(IApplicationBuilder) UseSpaStaticFiles(IApplicationBuilder) UseSpaStaticFiles(IApplicationBuilder)

Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service.

UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions)

Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service.

Applies to