예제 #1
0
파일: Startup.cs 프로젝트: darakeon/dfm
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        // ReSharper disable once UnusedMember.Global
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime life)
        {
            AppLog.ShowLogOnError(app);

            BaseModel.IsDev = env.IsDevelopment();
            TZ.Init(env.IsDevelopment());

            Config.Initialize(env);

            Security.DenyFrame(app);

            StaticFiles.Configure(app);

            Route.CreateRoutes();

            Rewrite.TestThemAll(app);

            Context.Set(app);

            Error.AddHandlers(app, env);

            Orm.Config(app, life);

            Context.SetLanguage(app, env);

            Access.Run(app);

            Route.Execute(app);
        }