aspnetcore/test/Microsoft.AspNetCore.Server.../TestHelpers/TestKestrelTrace.cs

32 lines
1.0 KiB
C#

using System;
using Microsoft.AspNetCore.Server.Kestrel;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.KestrelTests
{
public class TestKestrelTrace : KestrelTrace
{
public TestKestrelTrace() : this(new TestApplicationErrorLogger())
{
}
public TestKestrelTrace(ILogger testLogger) : base(testLogger)
{
}
public override void ConnectionRead(string connectionId, int count)
{
//_logger.LogDebug(1, @"Connection id ""{ConnectionId}"" recv {count} bytes.", connectionId, count);
}
public override void ConnectionWrite(string connectionId, int count)
{
//_logger.LogDebug(1, @"Connection id ""{ConnectionId}"" send {count} bytes.", connectionId, count);
}
public override void ConnectionWriteCallback(string connectionId, int status)
{
//_logger.LogDebug(1, @"Connection id ""{ConnectionId}"" send finished with status {status}.", connectionId, status);
}
}
}