commented private code that is definitely never used
This closes #2375
diff --git a/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs b/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs
index dd30d3d..a013a9a 100644
--- a/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs
+++ b/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs
@@ -31,8 +31,10 @@
public class THttpServerTransport
{
protected const string ContentType = "application/x-thrift";
+ /* never used
private readonly ILogger _logger;
private readonly RequestDelegate _next;
+ */
protected Encoding Encoding = Encoding.UTF8;
protected TProtocolFactory InputProtocolFactory;
@@ -85,11 +87,13 @@
InputTransportFactory = inputTransFactory;
OutputTransportFactory = outputTransFactory;
+ /* never used
_next = next;
_logger = (loggerFactory != null) ? loggerFactory.CreateLogger<THttpServerTransport>() : new NullLogger<THttpServerTransport>();
- }
+ */
+ }
- public async Task Invoke(HttpContext context)
+ public async Task Invoke(HttpContext context)
{
context.Response.ContentType = ContentType;
await ProcessRequestAsync(context, context.RequestAborted); //TODO: check for correct logic