/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.TestFramework/Logging/TestOutputLoggerFactory.cs
32 строки
687 B
Chris Patterson
Fixed #1925 - RabbitMQ StartAsync cancellation hang
09 июн 2020, 19:53
09 июн 2020, 19:53
4d771f2
Код
Авторство
О чём код?
namespace MassTransit.TestFramework.Logging { using Microsoft.Extensions.Logging; using NUnit.Framework.Internal; public class TestOutputLoggerFactory : ILoggerFactory { readonly bool _enabled; public TestOutputLoggerFactory(bool enabled) { _enabled = enabled; } public TestExecutionContext Current { get; set; } public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) { return new TestOutputLogger(this, _enabled); } public void AddProvider(ILoggerProvider provider) { } public void Dispose() { } } }