Share via


OwinAppBuilder Class

Definition

This is the default OWIN configuration class used to set up the OWIN application with the middleware extensions the runtime uses (e.g. authentication providers) as well as ASP.NET Web API. The OWIN application configuration to use can be configured through the dependency injection engine.

public class OwinAppBuilder : Microsoft.WindowsAzure.Mobile.Service.Config.IOwinAppBuilder
type OwinAppBuilder = class
    interface IOwinAppBuilder
Public Class OwinAppBuilder
Implements IOwinAppBuilder
Inheritance
OwinAppBuilder
Implements

Constructors

OwinAppBuilder(HttpConfiguration)

Initializes a new instance of the OwinAppBuilder class using the provided configuration.

Methods

Configuration(IAppBuilder)

Configures the OWIN pipeline by manipulating the given appBuilder.

ConfigureAuthentication(IAppBuilder, HttpConfiguration)

Adds the ASP.NET Identity Framework authentication providers to the OWIN application pipeline.

ConfigureBackstop(IAppBuilder, HttpConfiguration)

Adds a backstop to the OWIN application pipeline resulting in a 404 Not Found response for any requests getting to this part of the pipeline.

ConfigureExtensions(IAppBuilder, HttpConfiguration)

Adds IOwinAppBuilderExtension instances to the OWIN application pipeline. IOwinAppBuilderExtension implementations that are registered with the Dependency Injection engine will automatically get added to the end of the OWIN application pipeline. This is useful for extensions where ordering is not critical other than that they are added after the authentication part of the pipeline.

ConfigureLogger(IAppBuilder, HttpConfiguration)

Adds (optional) logging to the OWIN application pipeline. The ILoggerFactory can be registered with the Dependency Injection engine.

ConfigureWebApi(IAppBuilder, HttpConfiguration)

Adds Web API to the OWIN application pipeline.

Applies to