C# Class UrfIdentity.Web.Startup

Register types into the Autofac Inversion of Control (IOC) container. Autofac makes it easy to register common MVC types like the UrlHelper using the AutofacWebTypesModule. Feel free to change this to another IoC container of your choice but ensure that common MVC types like UrlHelper are registered. See http://autofac.readthedocs.org/en/latest/integration/aspnet.html.
ファイルを表示 Open project: Neilski/URF-Identity

Public Methods

Method Description
Configuration ( IAppBuilder app ) : void
ConfigureAuth ( IAppBuilder app ) : void
ConfigureContainer ( IAppBuilder app ) : void
CreateApplicationRoleManager ( IdentityFactoryOptions options, IOwinContext context ) : ApplicationRoleManager
CreateApplicationSignInManager ( IdentityFactoryOptions options, IOwinContext context ) : ApplicationSignInManager
CreateApplicationUserManager ( IdentityFactoryOptions options, IOwinContext context ) : ApplicationUserManager

Private Methods

Method Description
CreateContainer ( ) : IContainer
RegisterApplicationData ( ContainerBuilder builder ) : void
RegisterDALs ( ContainerBuilder builder ) : void
RegisterIdentity ( ContainerBuilder builder ) : void
RegisterMvc ( ContainerBuilder builder, Assembly assembly ) : void
RegisterServices ( ContainerBuilder builder ) : void
SetMvcDependencyResolver ( IContainer container ) : void

Sets the ASP.NET MVC dependency resolver.

SetWebApiDependencyResolver ( IContainer container ) : void

Sets the ASP.NET WebApi dependency resolver.

Method Details

Configuration() public method

public Configuration ( IAppBuilder app ) : void
app IAppBuilder
return void

ConfigureAuth() public method

public ConfigureAuth ( IAppBuilder app ) : void
app IAppBuilder
return void

ConfigureContainer() public static method

public static ConfigureContainer ( IAppBuilder app ) : void
app IAppBuilder
return void

CreateApplicationRoleManager() public static method

public static CreateApplicationRoleManager ( IdentityFactoryOptions options, IOwinContext context ) : ApplicationRoleManager
options IdentityFactoryOptions
context IOwinContext
return ApplicationRoleManager

CreateApplicationSignInManager() public static method

public static CreateApplicationSignInManager ( IdentityFactoryOptions options, IOwinContext context ) : ApplicationSignInManager
options IdentityFactoryOptions
context IOwinContext
return ApplicationSignInManager

CreateApplicationUserManager() public static method

public static CreateApplicationUserManager ( IdentityFactoryOptions options, IOwinContext context ) : ApplicationUserManager
options IdentityFactoryOptions
context IOwinContext
return ApplicationUserManager