AppBuilder Class
A standard implementation of IAppBuilder
Inheritance Hierarchy
System.Object
Microsoft.Owin.Builder.AppBuilder
Namespace: Microsoft.Owin.Builder
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Syntax
'Declaration
Public Class AppBuilder _
Implements IAppBuilder
'Usage
Dim instance As AppBuilder
public class AppBuilder : IAppBuilder
public ref class AppBuilder : IAppBuilder
type AppBuilder =
class
interface IAppBuilder
end
public class AppBuilder implements IAppBuilder
The AppBuilder type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AppBuilder |
Top
Properties
Name | Description | |
---|---|---|
Properties | Contains arbitrary properties which may added, examined, and modified by components during the startup sequence. |
Top
Methods
Name | Description | |
---|---|---|
Build | The Build is called at the point when all of the middleware should be chained together. This is typically done by the hosting component which created the app builder, and does not need to be called by the startup method if the IAppBuilder is passed in. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
New | The New method creates a new instance of an IAppBuilder. This is needed to create a tree structure in your processing, rather than a linear pipeline. The new instance share the same Properties, but will be created with a new, empty middleware list. To create a tangent pipeline you would first call New, followed by several calls to Use on the new builder, ending with a call to Build on the new builder. The return value from Build will be the entry-point to your tangent pipeline. This entry-point may now be added to the main pipeline as an argument to a switching middleware, which will either call the tangent pipeline or the "next app", based on something in the request. That said - all of that work is typically hidden by a middleware like Map, which will do that for you. | |
ToString | (Inherited from Object.) | |
Use | Adds a middleware node to the OWIN function pipeline. The middleware are invoked in the order they are added: the first middleware passed to Use will be the outermost function, and the last middleware passed to Use will be the innermost. |
Top
Extension Methods
Name | Description | |
---|---|---|
AddSignatureConversion(Delegate) | Overloaded. Adds converters for adapting between disparate application signatures. (Defined by AppBuilderExtensions.) | |
AddSignatureConversion<T1, T2>(Func<T1, T2>) | Overloaded. Adds converters for adapting between disparate application signatures. (Defined by AppBuilderExtensions.) | |
Build() | Overloaded. The Build is called at the point when all of the middleware should be chained together. May be called to build pipeline branches. (Defined by AppBuilderExtensions.) | |
Build<TApp>() | Overloaded. The Build is called at the point when all of the middleware should be chained together. May be called to build pipeline branches. (Defined by AppBuilderExtensions.) | |
CreateDataProtector | Creates a data protector. (Defined by AppBuilderExtensions.) | |
CreateLogger(String) | Overloaded. Creates a new ILogger instance from the server.LoggerFactory in the Properties collection. (Defined by AppBuilderLoggerExtensions.) | |
CreateLogger(Type) | Overloaded. Creates a new ILogger instance from the server.LoggerFactory in the Properties collection. (Defined by AppBuilderLoggerExtensions.) | |
CreateLogger<TType>() | Overloaded. Creates a new ILogger instance from the server.LoggerFactory in the Properties collection. (Defined by AppBuilderLoggerExtensions.) | |
GetDataProtectionProvider | Retrieves a data protection provider for the application. (Defined by AppBuilderExtensions.) | |
GetDefaultSignInAsAuthenticationType | Returns the previously set AuthenticationType that external sign in middleware should use when the browser navigates back to their return url. (Defined by AppBuilderSecurityExtensions.) | |
GetLoggerFactory | Retrieves the server.LoggerFactory from the Properties collection. (Defined by AppBuilderLoggerExtensions.) | |
Map(String, Action<IAppBuilder>) | Overloaded. If the request path starts with the given pathMatch, execute the app configured via configuration parameter instead of continuing to the next component in the pipeline. (Defined by MapExtensions.) | |
Map(PathString, Action<IAppBuilder>) | Overloaded. If the request path starts with the given pathMatch, execute the app configured via configuration parameter instead of continuing to the next component in the pipeline. (Defined by MapExtensions.) | |
MapWhen | Branches the request pipeline based on the result of the given predicate. (Defined by MapWhenExtensions.) | |
MapWhenAsync | Branches the request pipeline based on the async result of the given predicate. (Defined by MapWhenExtensions.) | |
Run | (Defined by AppBuilderUseExtensions.) | |
SetDataProtectionProvider | Sets a data protection provider. (Defined by AppBuilderExtensions.) | |
SetDefaultSignInAsAuthenticationType | Called by middleware to change the name of the AuthenticationType that external middleware should use when the browser navigates back to their return url. (Defined by AppBuilderSecurityExtensions.) | |
SetLoggerFactory | Sets the server.LoggerFactory in the Properties collection. (Defined by AppBuilderLoggerExtensions.) | |
Use(Func<IOwinContext, Func<Task>, Task>) | Overloaded. (Defined by AppBuilderUseExtensions.) | |
Use<T>(array<Object[]) | Overloaded. (Defined by AppBuilderUseExtensions.) | |
UseActiveDirectoryFederationServicesBearerAuthentication | Adds Active Directory Federation Services (ADFS) issued JWT bearer token middleware to your web application pipeline. (Defined by ActiveDirectoryFederationServicesBearerAuthenticationExtensions.) | |
UseCookieAuthentication | Adds a cookie-based authentication middleware to your web application pipeline. (Defined by CookieAuthenticationExtensions.) | |
UseCors | Adds a CORS middleware to your web application pipeline to allow cross domain requests. (Defined by CorsExtensions.) | |
UseErrorPage() | Overloaded. Captures synchronous and asynchronous exceptions from the pipeline and generates HTML error responses. (Defined by ErrorPageExtensions.) | |
UseErrorPage(ErrorPageOptions) | Overloaded. Captures synchronous and asynchronous exceptions from the pipeline and generates HTML error responses. (Defined by ErrorPageExtensions.) | |
UseFacebookAuthentication(FacebookAuthenticationOptions) | Overloaded. Generates a Facebook authentication for OWIN application. (Defined by FacebookAuthenticationExtensions.) | |
UseFacebookAuthentication(String, String) | Overloaded. Generates a Facebook authentication for OWIN application. (Defined by FacebookAuthenticationExtensions.) | |
UseGoogleAuthentication() | Overloaded. Called after the middleware uses Google authentication. (Defined by GoogleAuthenticationExtensions.) | |
UseGoogleAuthentication(GoogleAuthenticationOptions) | Overloaded. Called after the middleware uses Google authentication. (Defined by GoogleAuthenticationExtensions.) | |
UseJwtBearerAuthentication | Adds JWT bearer token middleware to your web application pipeline. (Defined by JwtBearerAuthenticationExtensions.) | |
UseMicrosoftAccountAuthentication(MicrosoftAccountAuthenticationOptions) | Overloaded. Authenticate users using Microsoft Account (Defined by MicrosoftAccountAuthenticationExtensions.) | |
UseMicrosoftAccountAuthentication(String, String) | Overloaded. Authenticate users using Microsoft Account (Defined by MicrosoftAccountAuthenticationExtensions.) | |
UseOAuthAuthorizationServer | Adds OAuth2 Authorization Server capabilities to an OWIN web application. This middleware performs the request processing for the Authorize and Token endpoints defined by the OAuth2 specification. See also http://tools.ietf.org/html/rfc6749 (Defined by OAuthAuthorizationServerExtensions.) | |
UseOAuthBearerAuthentication | Generates an OAuth bearer authentication for OWIN application. (Defined by OAuthBearerAuthenticationExtensions.) | |
UseStageMarker(String) | Overloaded. Uses a stage marker for the IntegratedPipelineExtensions. (Defined by IntegratedPipelineExtensions.) | |
UseStageMarker(PipelineStage) | Overloaded. Uses a stage marker for the IntegratedPipelineExtensions. (Defined by IntegratedPipelineExtensions.) | |
UseTwitterAuthentication(TwitterAuthenticationOptions) | Overloaded. Authenticate users using Twitter (Defined by TwitterAuthenticationExtensions.) | |
UseTwitterAuthentication(String, String) | Overloaded. Authenticate users using Twitter (Defined by TwitterAuthenticationExtensions.) | |
UseWelcomePage() | Overloaded. Call after other middleware to specify that they should run in the welcome page. (Defined by WelcomePageExtensions.) | |
UseWelcomePage(String) | Overloaded. Call after other middleware to specify that they should run in the welcome page. (Defined by WelcomePageExtensions.) | |
UseWelcomePage(PathString) | Overloaded. Adds the WelcomePageMiddleware to the pipeline with the given path. (Defined by WelcomePageExtensions.) | |
UseWelcomePage(WelcomePageOptions) | Overloaded. Call after other middleware to specify that they should run in the welcome page. (Defined by WelcomePageExtensions.) | |
UseWindowsAzureActiveDirectoryBearerAuthentication | Adds Windows Azure Active Directory (WAAD) issued JWT bearer token middleware to your web application pipeline. (Defined by WindowsAzureActiveDirectoryBearerAuthenticationExtensions.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.