File tree Expand file tree Collapse file tree
samples/PartialResponse.AspNetCore.Mvc.Formatters.Json.Demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,11 @@ namespace PartialResponse.AspNetCore.Mvc.Formatters.Json.Demo
1111{
1212 public class Startup
1313 {
14- private readonly IHostingEnvironment hostingEnvironment ;
1514 private readonly IConfiguration configuration ;
1615
17- public Startup ( IHostingEnvironment env , IConfiguration config )
16+ public Startup ( IConfiguration configuration )
1817 {
19- this . hostingEnvironment = env ;
20- this . configuration = config ;
18+ this . configuration = configuration ;
2119 }
2220
2321 public void ConfigureServices ( IServiceCollection services )
@@ -29,7 +27,7 @@ public void ConfigureServices(IServiceCollection services)
2927 . AddPartialJsonFormatters ( ) ;
3028 }
3129
32- public void Configure ( IApplicationBuilder app , IHostingEnvironment env , ILoggerFactory loggerFactory )
30+ public void Configure ( IApplicationBuilder app , ILoggerFactory loggerFactory )
3331 {
3432 loggerFactory . AddConsole ( this . configuration . GetSection ( "Logging" ) ) ;
3533
You can’t perform that action at this time.
0 commit comments