mirror of
https://github.com/Azure/DotNetty.git
synced 2026-10-19 06:31:20 +08:00
4f28a55b48
Motivation .NET Core tooling allows building for both .NET Framework and .NET Standard while easing pains of running tests and packaging. Modifications - csproj -> xproj + project.json - support for .NET Standard 1.3 - build script is now based on CAKE - using dotnet CLI for building, testing, packing - strong name by default (snk included) Result DotNetty works on .NET Core and any other platform supporting .NET Standard 1.3+.
21 lines
509 B
C#
21 lines
509 B
C#
namespace DotNetty.Tests.Common
|
|
{
|
|
using Microsoft.Extensions.Logging;
|
|
using Xunit.Abstractions;
|
|
|
|
sealed class XUnitOutputLoggerProvider : ILoggerProvider
|
|
{
|
|
readonly ITestOutputHelper output;
|
|
|
|
public XUnitOutputLoggerProvider(ITestOutputHelper output)
|
|
{
|
|
this.output = output;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
public ILogger CreateLogger(string categoryName) => new XUnitOutputLogger(categoryName, this.output);
|
|
}
|
|
} |