diff --git a/src/OmniSharp.Http/Middleware/EndpointMiddleware.cs b/src/OmniSharp.Http/Middleware/EndpointMiddleware.cs index c10974986a..0dcee458e7 100644 --- a/src/OmniSharp.Http/Middleware/EndpointMiddleware.cs +++ b/src/OmniSharp.Http/Middleware/EndpointMiddleware.cs @@ -103,12 +103,4 @@ public async Task Invoke(HttpContext httpContext) await _next(httpContext); } } - - public static class EndpointMiddlewareExtensions - { - public static IApplicationBuilder UseEndpointMiddleware(this IApplicationBuilder builder) - { - return builder.UseMiddleware(); - } - } } diff --git a/src/OmniSharp.Http/Middleware/LoggingMiddleware.cs b/src/OmniSharp.Http/Middleware/LoggingMiddleware.cs index 174ea41caf..0e0bdd7a32 100644 --- a/src/OmniSharp.Http/Middleware/LoggingMiddleware.cs +++ b/src/OmniSharp.Http/Middleware/LoggingMiddleware.cs @@ -111,12 +111,4 @@ private void LogResponse(HttpContext context) } } } - - public static class LoggingMiddlewareExtensions - { - public static IApplicationBuilder UseRequestLogging(this IApplicationBuilder app) - { - return app.UseMiddleware(); - } - } } diff --git a/src/OmniSharp.Http/Startup.cs b/src/OmniSharp.Http/Startup.cs index 1f2abc5c1f..bd5742406d 100644 --- a/src/OmniSharp.Http/Startup.cs +++ b/src/OmniSharp.Http/Startup.cs @@ -82,7 +82,7 @@ public void Configure( logger.LogInformation($"Starting OmniSharp on {Platform.Current}"); - app.UseRequestLogging(); + app.UseMiddleware(); app.UseExceptionHandler("/error"); app.UseMiddleware(_compositionHost); app.UseMiddleware(workspace);