Пример #1
0
 public AreaRouter(
     Microsoft.AspNetCore.Mvc.Infrastructure.IActionInvokerFactory actionInvokerFactory,
     Microsoft.AspNetCore.Mvc.Infrastructure.IActionSelector actionSelector,
     System.Diagnostics.DiagnosticListener diagnosticListener,
     Microsoft.Extensions.Logging.ILoggerFactory loggerFactory)
     : this(actionInvokerFactory, actionSelector, diagnosticListener, loggerFactory, null)
 {
 }
Пример #2
0
 public AreaRouter(
     Microsoft.AspNetCore.Mvc.Infrastructure.IActionInvokerFactory actionInvokerFactory,
     Microsoft.AspNetCore.Mvc.Infrastructure.IActionSelector actionSelector,
     System.Diagnostics.DiagnosticListener diagnosticListener,
     Microsoft.Extensions.Logging.ILoggerFactory loggerFactory,
     IActionContextAccessor actionContextAccessor)
     : base(actionInvokerFactory, actionSelector, diagnosticListener, loggerFactory, actionContextAccessor)
 {
 }
Пример #3
0
        public static IDisposable SubscribeWithAdapter(this DiagnosticListener diagnostic, object target)
        {
            var adapter = new DiagnosticSourceAdapter(target);

            return(diagnostic.Subscribe(adapter, (Predicate <string>)adapter.IsEnabled));
        }