Skip to content

Commit d4a8bb2

Browse files
committed
code clean up
1 parent b5ce9cf commit d4a8bb2

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

src/AspNetCoreFileUploadFileTable/Startup.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using AspNet5FileUploadFileTable.Controllers;
1+
using AspNet5FileUploadFileTable.Controllers;
62
using DataAccess;
73
using Microsoft.AspNetCore.Builder;
84
using Microsoft.AspNetCore.Hosting;
95
using Microsoft.AspNetCore.Mvc;
106
using Microsoft.EntityFrameworkCore;
117
using Microsoft.Extensions.Configuration;
128
using Microsoft.Extensions.DependencyInjection;
13-
using Microsoft.Extensions.Logging;
149

1510
namespace AspNet5FileUploadFileTable
1611
{
@@ -53,11 +48,8 @@ public void ConfigureServices(IServiceCollection services)
5348
}
5449

5550
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
56-
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
51+
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
5752
{
58-
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
59-
loggerFactory.AddDebug();
60-
6153
if (env.IsDevelopment())
6254
{
6355
app.UseDeveloperExceptionPage();

src/AspNetCoreFileUploadFileTable/web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-->
66
<system.webServer>
77
<handlers>
8-
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
8+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
99
</handlers>
1010
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" startupTimeLimit="3600" requestTimeout="23:00:00">
1111
<environmentVariables />

0 commit comments

Comments
 (0)