|
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; |
6 | 2 | using DataAccess; |
7 | 3 | using Microsoft.AspNetCore.Builder; |
8 | 4 | using Microsoft.AspNetCore.Hosting; |
9 | 5 | using Microsoft.AspNetCore.Mvc; |
10 | 6 | using Microsoft.EntityFrameworkCore; |
11 | 7 | using Microsoft.Extensions.Configuration; |
12 | 8 | using Microsoft.Extensions.DependencyInjection; |
13 | | -using Microsoft.Extensions.Logging; |
14 | 9 |
|
15 | 10 | namespace AspNet5FileUploadFileTable |
16 | 11 | { |
@@ -46,18 +41,15 @@ public void ConfigureServices(IServiceCollection services) |
46 | 41 | ) |
47 | 42 | ); |
48 | 43 |
|
49 | | - services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); |
| 44 | + services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); |
50 | 45 |
|
51 | 46 | services.AddScoped<IFileRepository, FileRepository>(); |
52 | 47 | services.AddScoped<ValidateMimeMultipartContentFilter>(); |
53 | 48 | } |
54 | 49 |
|
55 | 50 | // 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) |
57 | 52 | { |
58 | | - loggerFactory.AddConsole(Configuration.GetSection("Logging")); |
59 | | - loggerFactory.AddDebug(); |
60 | | - |
61 | 53 | if (env.IsDevelopment()) |
62 | 54 | { |
63 | 55 | app.UseDeveloperExceptionPage(); |
|
0 commit comments