Пример #1
0
        public TestServiceContext()
        {
            var logger       = new TestApplicationErrorLogger();
            var kestrelTrace = new TestKestrelTrace(logger);

            Initialize(kestrelTrace.LoggerFactory, kestrelTrace);
        }
Пример #2
0
        public TestServiceContext()
        {
            var logger        = new TestApplicationErrorLogger();
            var kestrelTrace  = new TestKestrelTrace(logger);
            var loggerFactory = new LoggerFactory(new[] { new KestrelTestLoggerProvider(logger) });

            Initialize(loggerFactory, kestrelTrace);
        }