C# 클래스 MusicStore.StartupOpenIdConnect

To make runtime to load an environment based startup class, specify the environment by the following ways: 1. Drop a Microsoft.AspNet.Hosting.ini file in the wwwroot folder 2. Add a setting in the ini file named 'ASPNET_ENV' with value of the format 'Startup[EnvironmentName]'. For example: To load a Startup class named 'StartupOpenIdConnect' the value of the env should be 'OpenIdConnect' (eg. ASPNET_ENV=OpenIdConnect). Runtime adds a 'Startup' prefix to this and loads 'StartupOpenIdConnect'. If no environment name is specified the default startup class loaded is 'Startup'. Alternative ways to specify environment are: 1. Set the environment variable named SET ASPNET_ENV=OpenIdConnect 2. For selfhost based servers pass in a command line variable named --env with this value. Eg: "commands": { "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5002 --ASPNET_ENV OpenIdConnect", },
파일 보기 프로젝트 열기: ivaylokenov/MyTested.AspNetCore.Mvc

공개 메소드들

메소드 설명
Configure ( IApplicationBuilder app, ILoggerFactory loggerFactory ) : void
ConfigureServices ( IServiceCollection services ) : void
StartupOpenIdConnect ( IHostingEnvironment hostingEnvironment ) : Microsoft.AspNetCore.Builder

메소드 상세

Configure() 공개 메소드

public Configure ( IApplicationBuilder app, ILoggerFactory loggerFactory ) : void
app IApplicationBuilder
loggerFactory ILoggerFactory
리턴 void

ConfigureServices() 공개 메소드

public ConfigureServices ( IServiceCollection services ) : void
services IServiceCollection
리턴 void

StartupOpenIdConnect() 공개 메소드

public StartupOpenIdConnect ( IHostingEnvironment hostingEnvironment ) : Microsoft.AspNetCore.Builder
hostingEnvironment IHostingEnvironment
리턴 Microsoft.AspNetCore.Builder