]> insang Git - ZipProject.git/commitdiff
re pull
authormin <ken1336@naver.com>
Sun, 17 Feb 2019 11:48:17 +0000 (20:48 +0900)
committermin <ken1336@naver.com>
Sun, 17 Feb 2019 11:48:17 +0000 (20:48 +0900)
ZipProject/Startup.cs

index a9547a28bfc02bb92ab625858c83fc898386909c..f9327b8c171f84ad71acf2af5d3548724a92d3ad 100644 (file)
@@ -11,54 +11,54 @@ using Microsoft.Extensions.Configuration;
 using Microsoft.Extensions.DependencyInjection;\r
 \r
 namespace ZipProject\r
-{
-  public class Startup
+{\r
+  public class Startup\r
   {\r
-    public Startup(IConfiguration configuration)
-    {
-      Configuration = configuration;
-    }
-
-    public IConfiguration Configuration { get; }
-
-    // This method gets called by the runtime. Use this method to add services to the container.
-    public void ConfigureServices(IServiceCollection services)
-    {
-      services.Configure<CookiePolicyOptions>(options =>
-      {
-        // This lambda determines whether user consent for non-essential cookies is needed for a given request.
-        options.CheckConsentNeeded = context => false;
-        options.MinimumSameSitePolicy = SameSiteMode.None;
-      });
+    public Startup(IConfiguration configuration)\r
+    {\r
+      Configuration = configuration;\r
+    }\r
+\r
+    public IConfiguration Configuration { get; }\r
+\r
+    // This method gets called by the runtime. Use this method to add services to the container.\r
+    public void ConfigureServices(IServiceCollection services)\r
+    {\r
+      services.Configure<CookiePolicyOptions>(options =>\r
+      {\r
+        // This lambda determines whether user consent for non-essential cookies is needed for a given request.\r
+        options.CheckConsentNeeded = context => false;\r
+        options.MinimumSameSitePolicy = SameSiteMode.None;\r
+      });\r
       services.AddSession(s => s.IdleTimeout = TimeSpan.FromMinutes(5));\r
-      services.AddHttpContextAccessor();
-      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
-    }
-
-    // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
-    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
-    {
-      if (env.IsDevelopment())
-      {
-        app.UseDeveloperExceptionPage();
-      }
-      else
-      {
-        app.UseExceptionHandler("/Home/Error");
-        app.UseHsts();
-      }
-
-      //app.UseHttpsRedirection();
-      app.UseStaticFiles();
-      app.UseCookiePolicy();
-      app.UseSession();
-      
-      app.UseMvc(routes =>
-      {
-        routes.MapRoute(
-                  name: "default",
-                  template: "{controller=WebZip}/{action=Index}/{id?}");
-      });
-    }
+      services.AddHttpContextAccessor();\r
+      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);\r
+    }\r
+\r
+    // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\r
+    public void Configure(IApplicationBuilder app, IHostingEnvironment env)\r
+    {\r
+      if (env.IsDevelopment())\r
+      {\r
+        app.UseDeveloperExceptionPage();\r
+      }\r
+      else\r
+      {\r
+        app.UseExceptionHandler("/Home/Error");\r
+        app.UseHsts();\r
+      }\r
+\r
+      //app.UseHttpsRedirection();\r
+      app.UseStaticFiles();\r
+      app.UseCookiePolicy();\r
+      app.UseSession();\r
+      \r
+      app.UseMvc(routes =>\r
+      {\r
+        routes.MapRoute(\r
+                  name: "default",\r
+                  template: "{controller=WebZip}/{action=Index}/{id?}");\r
+      });\r
+    }\r
   }\r
 }\r