1 type derived from DiagnosticListener
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
1159private class NoopDiagnosticListener : DiagnosticListener
113 instantiations of DiagnosticListener
Aspire.Hosting (4)
DistributedApplicationBuilder.cs (4)
388var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName); 400var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName); 412var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName); 424var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName);
InMemory.FunctionalTests (4)
BadHttpRequestTests.cs (4)
326var diagListener = new DiagnosticListener("BadRequestTestsDiagListener"); 384var diagListener = new DiagnosticListener("NotBadRequestTestsDiagListener"); 450var diagListener = new DiagnosticListener("NotBadRequestTestsDiagListener"); 525var diagListener = new DiagnosticListener("NotBadRequestTestsDiagListener");
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentResultTest.cs (1)
457.AddSingleton(new DiagnosticListener("test"))
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
135var listener = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionHandlerMiddlewareTest.cs (1)
512var listener = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostBuilder.cs (1)
74services.TryAddSingleton(sp => new DiagnosticListener("Microsoft.AspNetCore"));
GenericHost\SlimWebHostBuilder.cs (1)
48services.TryAddSingleton(sp => new DiagnosticListener("Microsoft.AspNetCore"));
WebHostBuilder.cs (1)
286services.TryAddSingleton(sp => new DiagnosticListener("Microsoft.AspNetCore"));
Microsoft.AspNetCore.Hosting.Tests (18)
HostingApplicationDiagnosticsTests.cs (16)
489var diagnosticListener = new DiagnosticListener("DummySource"); 528var diagnosticListener = new DiagnosticListener("DummySource"); 562var diagnosticListener = new DiagnosticListener("DummySource"); 599var diagnosticListener = new DiagnosticListener("DummySource"); 624var diagnosticListener = new DiagnosticListener("DummySource"); 649var diagnosticListener = new DiagnosticListener("DummySource"); 673var diagnosticListener = new DiagnosticListener("DummySource"); 695var diagnosticListener = new DiagnosticListener("DummySource"); 717var diagnosticListener = new DiagnosticListener("DummySource"); 748var diagnosticListener = new DiagnosticListener("DummySource"); 777var diagnosticListener = new DiagnosticListener("DummySource"); 807var diagnosticListener = new DiagnosticListener("DummySource"); 838var diagnosticListener = new DiagnosticListener("DummySource"); 875var diagnosticListener = new DiagnosticListener("DummySource"); 904var diagnosticListener = new DiagnosticListener("DummySource"); 984var diagnosticListener = new DiagnosticListener("DummySource");
HostingApplicationTests.cs (1)
195new DiagnosticListener("Microsoft.AspNetCore"),
HostingMetricsTests.cs (1)
202new DiagnosticListener("Microsoft.AspNetCore"),
Microsoft.AspNetCore.Mvc.Core.Test (7)
Builder\MvcApplicationBuilderExtensionsTest.cs (2)
39services.AddSingleton<DiagnosticListener>(new DiagnosticListener("Microsoft.AspNetCore")); 64services.AddSingleton<DiagnosticListener>(new DiagnosticListener("Microsoft.AspNetCore"));
Filters\MiddlewareFilterTest.cs (1)
272var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore");
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
88new DiagnosticListener("Microsoft.AspNetCore"),
Infrastructure\ControllerActionInvokerTest.cs (2)
1434new DiagnosticListener("Microsoft.AspNetCore"), 1733var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore");
Routing\MvcRouteHandlerTests.cs (1)
80var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.Mvc.Razor.Test (40)
RazorHotReloadTest.cs (1)
73var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore");
RazorPageActivatorTest.cs (1)
25DiagnosticListener = new DiagnosticListener("Microsoft.AspNetCore");
RazorPageCreateTagHelperTest.cs (1)
69new DiagnosticListener("Microsoft.AspNetCore"),
RazorViewEngineTest.cs (1)
2157: base(pageFactory, Mock.Of<IRazorPageActivator>(), new HtmlTestEncoder(), optionsAccessor, NullLoggerFactory.Instance, new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor"))
RazorViewTest.cs (36)
44new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 74new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 108var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor"); 193new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 220new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 269new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 294new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 320new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 349new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 405new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 449new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 503new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 537new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 580new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 625new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 701new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 742new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 809new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 878new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 941new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1010new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1045new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1113new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1187new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1228new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1282new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1352new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1410new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1465new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1496new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1543new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1588new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1646new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1691new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1733new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor")); 1768new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor"))
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
219collection.AddSingleton(new DiagnosticListener("Microsoft.AspNetCore"));
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
379diagnosticListener ?? new DiagnosticListener("Microsoft.AspNetCore.Mvc.RazorPages"),
Infrastructure\PageActionInvokerProviderTest.cs (1)
532new DiagnosticListener("Microsoft.AspNetCore"),
Infrastructure\PageActionInvokerTest.cs (3)
1493var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore"); 1566diagnosticListener ?? new DiagnosticListener("Microsoft.AspNetCore"), 1687new DiagnosticListener("Microsoft.AspNetCore"),
Microsoft.AspNetCore.Mvc.Test (2)
MvcOptionsSetupTest.cs (1)
288var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore.Mvc");
MvcServiceCollectionExtensionsTest.cs (1)
402var diagnosticListener = new DiagnosticListener("Microsoft.AspNet");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
292collection.AddSingleton(new DiagnosticListener("Microsoft.AspNetCore"));
PartialViewResultExecutorTest.cs (3)
209var diagnosticListener = new DiagnosticListener("Test"); 242var diagnosticListener = new DiagnosticListener("Test"); 345diagnosticListener = new DiagnosticListener("Test");
PartialViewResultTest.cs (1)
240new DiagnosticListener("Microsoft.AspNetCore"),
ViewComponentResultTest.cs (1)
655var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore");
ViewComponents\ViewViewComponentResultTest.cs (2)
353.Returns(new DiagnosticListener("Test")); 507var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore");
ViewExecutorTest.cs (2)
271var diagnosticListener = new DiagnosticListener("Test"); 394diagnosticListener = new DiagnosticListener("Test");
ViewResultExecutorTest.cs (3)
205var diagnosticListener = new DiagnosticListener("Test"); 238var diagnosticListener = new DiagnosticListener("Test"); 335diagnosticListener = new DiagnosticListener("Test");
ViewResultTest.cs (1)
252new DiagnosticListener("Microsoft.AspNetCore"),
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
EndpointRoutingShortCircuitBenchmark.cs (2)
34new DiagnosticListener("benchmark"), 46new DiagnosticListener("benchmark"),
Microsoft.AspNetCore.Routing.Tests (6)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
362var listener = new DiagnosticListener("Microsoft.AspNetCore");
EndpointRoutingMiddlewareFormOptionsTest.cs (1)
213listener ??= new DiagnosticListener("Microsoft.AspNetCore");
EndpointRoutingMiddlewareTest.cs (3)
67var listener = new DiagnosticListener("TestListener"); 406services.AddSingleton<DiagnosticListener>(s => new DiagnosticListener("Test")); 473listener ??= new DiagnosticListener("Microsoft.AspNetCore");
RoutingMetricsTests.cs (1)
160listener ??= new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
65var listener = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.Extensions.Hosting (2)
HostBuilder.cs (2)
175var diagnosticListener = new DiagnosticListener(HostBuildingDiagnosticListenerName); 187var diagnosticListener = new DiagnosticListener(HostBuildingDiagnosticListenerName);
System.Net.Http (1)
System\Net\Http\DiagnosticsHandler.cs (1)
18private static readonly DiagnosticListener s_diagnosticListener = new DiagnosticListener(DiagnosticsHandlerLoggingStrings.DiagnosticListenerName);
316 references to DiagnosticListener
Aspire.Hosting (8)
DistributedApplicationBuilder.cs (8)
386private static DiagnosticListener LogBuilderConstructing(DistributedApplicationOptions appBuilderOptions, HostApplicationBuilderSettings hostBuilderOptions) 388var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName); 398private static DiagnosticListener LogBuilderConstructed(DistributedApplicationBuilder builder) 400var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName); 410private static DiagnosticListener LogAppBuilding(DistributedApplicationBuilder appBuilder) 412var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName); 422private static DiagnosticListener LogAppBuilt(DistributedApplication app) 424var diagnosticListener = new DiagnosticListener(HostingDiagnosticListenerName);
Aspire.Hosting.Testing (4)
DistributedApplicationEntryPointInvoker.cs (4)
43private sealed class EntryPointInvoker : IObserver<DiagnosticListener> 74using var subscription = DiagnosticListener.AllListeners.Subscribe(this); 144public void OnNext(DiagnosticListener value) 162public void Subscribe(DiagnosticListener listener)
Aspire.Hosting.Tests (4)
Utils\TestDistributedApplicationBuilder.cs (4)
156private sealed class BuilderInterceptor : IObserver<DiagnosticListener> 175using var subscription = DiagnosticListener.AllListeners.Subscribe(interceptor); 193public void OnNext(DiagnosticListener value) 211public void Subscribe(DiagnosticListener listener)
Aspire.Microsoft.Data.SqlClient (5)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (5)
11internal sealed class DiagnosticSourceSubscriber : IDisposable, IObserver<DiagnosticListener> 15private readonly Func<DiagnosticListener, bool> diagnosticSourceFilter; 31Func<DiagnosticListener, bool> diagnosticSourceFilter, 48this.allSourcesSubscription = DiagnosticListener.AllListeners.Subscribe(this); 52public void OnNext(DiagnosticListener value)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (5)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (5)
11internal sealed class DiagnosticSourceSubscriber : IDisposable, IObserver<DiagnosticListener> 15private readonly Func<DiagnosticListener, bool> diagnosticSourceFilter; 31Func<DiagnosticListener, bool> diagnosticSourceFilter, 48this.allSourcesSubscription = DiagnosticListener.AllListeners.Subscribe(this); 52public void OnNext(DiagnosticListener value)
GetDocument.Insider (3)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24468.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (3)
196private sealed class HostingListener : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>> 221using var subscription = DiagnosticListener.AllListeners.Subscribe(this); 309public void OnNext(DiagnosticListener value)
InMemory.FunctionalTests (5)
BadHttpRequestTests.cs (5)
293public BadRequestEventListener(DiagnosticListener diagnosticListener, Action<KeyValuePair<string, object>> callback) 326var diagListener = new DiagnosticListener("BadRequestTestsDiagListener"); 384var diagListener = new DiagnosticListener("NotBadRequestTestsDiagListener"); 450var diagListener = new DiagnosticListener("NotBadRequestTestsDiagListener"); 525var diagListener = new DiagnosticListener("NotBadRequestTestsDiagListener");
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
135var listener = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.Diagnostics (6)
ExceptionHandler\ExceptionHandlerExtensions.cs (2)
119var diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>();
ExceptionHandler\ExceptionHandlerMiddleware.cs (2)
26/// <param name="diagnosticListener">The <see cref="DiagnosticListener"/> used for writing diagnostic messages.</param> 31DiagnosticListener diagnosticListener)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (2)
28private readonly DiagnosticListener _diagnosticListener; 37DiagnosticListener diagnosticListener,
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (6)
DatabaseErrorPageMiddleware.cs (6)
22public class DatabaseErrorPageMiddleware : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>> 67DiagnosticListener.AllListeners.Subscribe(this); 154void IObserver<DiagnosticListener>.OnNext(DiagnosticListener diagnosticListener) 183void IObserver<DiagnosticListener>.OnCompleted() 187void IObserver<DiagnosticListener>.OnError(Exception error)
Microsoft.AspNetCore.Diagnostics.Tests (9)
DeveloperExceptionPageMiddlewareTest.cs (4)
196DiagnosticListener diagnosticListener = null; 204diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>(); 540DiagnosticListener diagnosticListener = null; 548diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>();
ExceptionHandlerMiddlewareTest.cs (1)
512var listener = new DiagnosticListener("Microsoft.AspNetCore");
ExceptionHandlerTest.cs (4)
458DiagnosticListener diagnosticListener = null; 467diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>(); 511DiagnosticListener diagnosticListener = null; 520diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>();
Microsoft.AspNetCore.Hosting (13)
GenericHost\GenericWebHostBuilder.cs (1)
75services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>());
GenericHost\GenericWebHostService.cs (2)
22DiagnosticListener diagnosticListener, 52public DiagnosticListener DiagnosticListener { get; }
GenericHost\SlimWebHostBuilder.cs (1)
49services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>());
Internal\HostingApplication.cs (1)
23DiagnosticListener diagnosticSource,
Internal\HostingApplicationDiagnostics.cs (2)
31private readonly DiagnosticListener _diagnosticListener; 39DiagnosticListener diagnosticListener,
Internal\WebHost.cs (2)
140var diagnosticSource = _applicationServices.GetRequiredService<DiagnosticListener>();
WebHostBuilder.cs (4)
287services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>()); 354var listener = hostingServiceProvider.GetService<DiagnosticListener>(); 355services.Replace(ServiceDescriptor.Singleton(typeof(DiagnosticListener), listener!));
Microsoft.AspNetCore.Hosting.Tests (17)
HostingApplicationDiagnosticsTests.cs (17)
489var diagnosticListener = new DiagnosticListener("DummySource"); 528var diagnosticListener = new DiagnosticListener("DummySource"); 562var diagnosticListener = new DiagnosticListener("DummySource"); 599var diagnosticListener = new DiagnosticListener("DummySource"); 624var diagnosticListener = new DiagnosticListener("DummySource"); 649var diagnosticListener = new DiagnosticListener("DummySource"); 673var diagnosticListener = new DiagnosticListener("DummySource"); 695var diagnosticListener = new DiagnosticListener("DummySource"); 717var diagnosticListener = new DiagnosticListener("DummySource"); 748var diagnosticListener = new DiagnosticListener("DummySource"); 777var diagnosticListener = new DiagnosticListener("DummySource"); 807var diagnosticListener = new DiagnosticListener("DummySource"); 838var diagnosticListener = new DiagnosticListener("DummySource"); 875var diagnosticListener = new DiagnosticListener("DummySource"); 904var diagnosticListener = new DiagnosticListener("DummySource"); 984var diagnosticListener = new DiagnosticListener("DummySource"); 1085DiagnosticListener diagnosticListener = null, ActivitySource activitySource = null, ILogger logger = null,
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (2)
MiddlewareAnalysisTests.cs (2)
18DiagnosticListener diagnosticListener = null; 27diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>();
Microsoft.AspNetCore.Mvc.Core (78)
Infrastructure\ControllerActionInvoker.cs (2)
32DiagnosticListener diagnosticListener, 416var diagnosticListener = invoker._diagnosticListener;
Infrastructure\ControllerActionInvokerProvider.cs (3)
24private readonly DiagnosticListener _diagnosticListener; 32DiagnosticListener diagnosticListener, 42DiagnosticListener diagnosticListener,
Infrastructure\ResourceInvoker.cs (2)
16protected readonly DiagnosticListener _diagnosticListener; 38DiagnosticListener diagnosticListener,
MvcCoreDiagnosticListenerExtensions.cs (64)
21this DiagnosticListener diagnosticListener, 38private static void BeforeActionImpl(DiagnosticListener diagnosticListener, ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) 49this DiagnosticListener diagnosticListener, 66private static void AfterActionImpl(DiagnosticListener diagnosticListener, ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) 77this DiagnosticListener diagnosticListener, 92private static void BeforeOnAuthorizationAsyncImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext, IAsyncAuthorizationFilter filter) 107this DiagnosticListener diagnosticListener, 122private static void AfterOnAuthorizationAsyncImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext, IAsyncAuthorizationFilter filter) 137this DiagnosticListener diagnosticListener, 152private static void BeforeOnAuthorizationImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext, IAuthorizationFilter filter) 167this DiagnosticListener diagnosticListener, 182private static void AfterOnAuthorizationImpl(DiagnosticListener diagnosticListener, AuthorizationFilterContext authorizationContext, IAuthorizationFilter filter) 197this DiagnosticListener diagnosticListener, 212private static void BeforeOnResourceExecutionImpl(DiagnosticListener diagnosticListener, ResourceExecutingContext resourceExecutingContext, IAsyncResourceFilter filter) 227this DiagnosticListener diagnosticListener, 242private static void AfterOnResourceExecutionImpl(DiagnosticListener diagnosticListener, ResourceExecutedContext resourceExecutedContext, IAsyncResourceFilter filter) 257this DiagnosticListener diagnosticListener, 272private static void BeforeOnResourceExecutingImpl(DiagnosticListener diagnosticListener, ResourceExecutingContext resourceExecutingContext, IResourceFilter filter) 287this DiagnosticListener diagnosticListener, 302private static void AfterOnResourceExecutingImpl(DiagnosticListener diagnosticListener, ResourceExecutingContext resourceExecutingContext, IResourceFilter filter) 317this DiagnosticListener diagnosticListener, 332private static void BeforeOnResourceExecutedImpl(DiagnosticListener diagnosticListener, ResourceExecutedContext resourceExecutedContext, IResourceFilter filter) 347this DiagnosticListener diagnosticListener, 362private static void AfterOnResourceExecutedImpl(DiagnosticListener diagnosticListener, ResourceExecutedContext resourceExecutedContext, IResourceFilter filter) 377this DiagnosticListener diagnosticListener, 392private static void BeforeOnExceptionAsyncImpl(DiagnosticListener diagnosticListener, ExceptionContext exceptionContext, IAsyncExceptionFilter filter) 407this DiagnosticListener diagnosticListener, 422private static void AfterOnExceptionAsyncImpl(DiagnosticListener diagnosticListener, ExceptionContext exceptionContext, IAsyncExceptionFilter filter) 437this DiagnosticListener diagnosticListener, 452private static void BeforeOnExceptionImpl(DiagnosticListener diagnosticListener, ExceptionContext exceptionContext, IExceptionFilter filter) 467this DiagnosticListener diagnosticListener, 482private static void AfterOnExceptionImpl(DiagnosticListener diagnosticListener, ExceptionContext exceptionContext, IExceptionFilter filter) 497this DiagnosticListener diagnosticListener, 512private static void BeforeOnActionExecutionImpl(DiagnosticListener diagnosticListener, ActionExecutingContext actionExecutingContext, IAsyncActionFilter filter) 527this DiagnosticListener diagnosticListener, 542private static void AfterOnActionExecutionImpl(DiagnosticListener diagnosticListener, ActionExecutedContext actionExecutedContext, IAsyncActionFilter filter) 557this DiagnosticListener diagnosticListener, 572private static void BeforeOnActionExecutingImpl(DiagnosticListener diagnosticListener, ActionExecutingContext actionExecutingContext, IActionFilter filter) 587this DiagnosticListener diagnosticListener, 602private static void AfterOnActionExecutingImpl(DiagnosticListener diagnosticListener, ActionExecutingContext actionExecutingContext, IActionFilter filter) 617this DiagnosticListener diagnosticListener, 632private static void BeforeOnActionExecutedImpl(DiagnosticListener diagnosticListener, ActionExecutedContext actionExecutedContext, IActionFilter filter) 647this DiagnosticListener diagnosticListener, 662private static void AfterOnActionExecutedImpl(DiagnosticListener diagnosticListener, ActionExecutedContext actionExecutedContext, IActionFilter filter) 677this DiagnosticListener diagnosticListener, 694private static void BeforeActionMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary<string, object> actionArguments, object controller) 722this DiagnosticListener diagnosticListener, 740private static void AfterActionMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary<string, object> actionArguments, object controller, IActionResult result) 770this DiagnosticListener diagnosticListener, 785private static void BeforeOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IAsyncResultFilter filter) 800this DiagnosticListener diagnosticListener, 815private static void AfterOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IAsyncResultFilter filter) 830this DiagnosticListener diagnosticListener, 845private static void BeforeOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter) 860this DiagnosticListener diagnosticListener, 875private static void AfterOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter) 890this DiagnosticListener diagnosticListener, 905private static void BeforeOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter) 920this DiagnosticListener diagnosticListener, 935private static void AfterOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter) 950this DiagnosticListener diagnosticListener, 965private static void BeforeActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result) 976this DiagnosticListener diagnosticListener, 991private static void AfterActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result)
Routing\ControllerRequestDelegateFactory.cs (3)
25private readonly DiagnosticListener _diagnosticListener; 34DiagnosticListener diagnosticListener, 44DiagnosticListener diagnosticListener,
Routing\MvcAttributeRouteHandler.cs (2)
18private readonly DiagnosticListener _diagnosticListener; 23DiagnosticListener diagnosticListener,
Routing\MvcRouteHandler.cs (2)
17private readonly DiagnosticListener _diagnosticListener; 22DiagnosticListener diagnosticListener,
Microsoft.AspNetCore.Mvc.Core.Test (6)
Builder\MvcApplicationBuilderExtensionsTest.cs (2)
39services.AddSingleton<DiagnosticListener>(new DiagnosticListener("Microsoft.AspNetCore")); 64services.AddSingleton<DiagnosticListener>(new DiagnosticListener("Microsoft.AspNetCore"));
Filters\MiddlewareFilterTest.cs (2)
272var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore"); 393DiagnosticListener diagnosticListener,
Infrastructure\ControllerActionInvokerTest.cs (1)
1733var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore");
Routing\MvcRouteHandlerTests.cs (1)
80var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.Mvc.Razor (9)
MvcRazorDiagnosticListenerExtensions.cs (4)
13this DiagnosticListener diagnosticListener, 25this DiagnosticListener diagnosticListener, 43this DiagnosticListener diagnosticListener, 55this DiagnosticListener diagnosticListener,
RazorView.cs (3)
24private readonly DiagnosticListener _diagnosticListener; 36/// <param name="diagnosticListener">The <see cref="DiagnosticListener"/>.</param> 43DiagnosticListener diagnosticListener)
RazorViewEngine.cs (2)
44private readonly DiagnosticListener _diagnosticListener; 55DiagnosticListener diagnosticListener)
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorHotReloadTest.cs (1)
73var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore");
RazorPageActivatorTest.cs (1)
33private DiagnosticListener DiagnosticListener { get; }
RazorViewTest.cs (1)
108var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor");
Microsoft.AspNetCore.Mvc.RazorPages (34)
Infrastructure\DefaultPageFactoryProvider.cs (1)
26DiagnosticListener diagnosticListener,
Infrastructure\PageActionInvoker.cs (1)
36DiagnosticListener diagnosticListener,
Infrastructure\PageActionInvokerProvider.cs (2)
25private readonly DiagnosticListener _diagnosticListener; 38DiagnosticListener diagnosticListener,
Infrastructure\PageRequestDelegateFactory.cs (3)
26private readonly DiagnosticListener _diagnosticListener; 39DiagnosticListener diagnosticListener, 53DiagnosticListener diagnosticListener,
Infrastructure\PageResultExecutor.cs (3)
21private readonly DiagnosticListener _diagnosticListener; 31/// <param name="diagnosticListener">The <see cref="DiagnosticListener"/>.</param> 38DiagnosticListener diagnosticListener,
MvcRazorPagesDiagnosticListenerExtensions.cs (24)
14this DiagnosticListener diagnosticListener, 33private static void BeforeHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, HandlerMethodDescriptor handlerMethodDescriptor, IReadOnlyDictionary<string, object?> arguments, object instance) 49this DiagnosticListener diagnosticListener, 69private static void AfterHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, HandlerMethodDescriptor handlerMethodDescriptor, IReadOnlyDictionary<string, object?> arguments, object instance, IActionResult? result) 86this DiagnosticListener diagnosticListener, 101private static void BeforeOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutionContext, IAsyncPageFilter filter) 116this DiagnosticListener diagnosticListener, 131private static void AfterOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IAsyncPageFilter filter) 146this DiagnosticListener diagnosticListener, 161private static void BeforeOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) 176this DiagnosticListener diagnosticListener, 191private static void AfterOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) 206this DiagnosticListener diagnosticListener, 221private static void BeforeOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) 236this DiagnosticListener diagnosticListener, 251private static void AfterOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) 266this DiagnosticListener diagnosticListener, 281private static void BeforeOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter) 296this DiagnosticListener diagnosticListener, 311private static void AfterOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter) 326this DiagnosticListener diagnosticListener, 341private static void BeforeOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter) 356this DiagnosticListener diagnosticListener, 371private static void AfterOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
370DiagnosticListener diagnosticListener = null,
Infrastructure\PageActionInvokerTest.cs (1)
1493var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.Mvc.Test (4)
MvcOptionsSetupTest.cs (2)
288var diagnosticListener = new DiagnosticListener("Microsoft.AspNetCore.Mvc"); 290serviceCollection.AddSingleton<DiagnosticListener>(diagnosticListener);
MvcServiceCollectionExtensionsTest.cs (2)
402var diagnosticListener = new DiagnosticListener("Microsoft.AspNet"); 404services.AddSingleton<DiagnosticListener>(diagnosticListener);
Microsoft.AspNetCore.Mvc.Testing (3)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24468.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (3)
196private sealed class HostingListener : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>> 221using var subscription = DiagnosticListener.AllListeners.Subscribe(this); 309public void OnNext(DiagnosticListener value)
Microsoft.AspNetCore.Mvc.ViewFeatures (31)
MvcViewFeaturesDiagnosticListenerExtensions.cs (16)
15this DiagnosticListener diagnosticListener, 26private static void BeforeViewComponentImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, object viewComponent) 41this DiagnosticListener diagnosticListener, 53private static void AfterViewComponentImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IViewComponentResult result, object viewComponent) 69this DiagnosticListener diagnosticListener, 80private static void ViewComponentBeforeViewExecuteImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IView view) 95this DiagnosticListener diagnosticListener, 106private static void ViewComponentAfterViewExecuteImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IView view) 121this DiagnosticListener diagnosticListener, 132private static void BeforeViewImpl(DiagnosticListener diagnosticListener, IView view, ViewContext viewContext) 143this DiagnosticListener diagnosticListener, 154private static void AfterViewImpl(DiagnosticListener diagnosticListener, IView view, ViewContext viewContext) 165this DiagnosticListener diagnosticListener, 179private static void ViewFoundImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, bool isMainPage, ActionResult viewResult, string viewName, IView view) 196this DiagnosticListener diagnosticListener, 210private static void ViewNotFoundImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, bool isMainPage, ActionResult viewResult, string viewName, IEnumerable<string> searchedLocations)
PartialViewResultExecutor.cs (2)
32/// <param name="diagnosticListener">The <see cref="DiagnosticListener"/>.</param> 40DiagnosticListener diagnosticListener,
ViewComponents\DefaultViewComponentInvoker.cs (3)
23private readonly DiagnosticListener _diagnosticListener; 31/// <param name="diagnosticListener">The <see cref="DiagnosticListener"/>.</param> 36DiagnosticListener diagnosticListener,
ViewComponents\DefaultViewComponentInvokerFactory.cs (2)
14private readonly DiagnosticListener _diagnosticListener; 19DiagnosticListener diagnosticListener,
ViewComponents\ViewViewComponentResult.cs (2)
24private DiagnosticListener? _diagnosticListener; 113_diagnosticListener = viewContext.HttpContext.RequestServices.GetRequiredService<DiagnosticListener>();
ViewExecutor.cs (4)
43DiagnosticListener diagnosticListener, 61/// <param name="diagnosticListener">The <see cref="System.Diagnostics.DiagnosticListener"/>.</param> 65DiagnosticListener diagnosticListener) 79protected DiagnosticListener DiagnosticListener { get; }
ViewResultExecutor.cs (2)
32/// <param name="diagnosticListener">The <see cref="DiagnosticListener"/>.</param> 40DiagnosticListener diagnosticListener,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
PartialViewResultExecutorTest.cs (3)
209var diagnosticListener = new DiagnosticListener("Test"); 242var diagnosticListener = new DiagnosticListener("Test"); 341private PartialViewResultExecutor GetViewExecutor(DiagnosticListener diagnosticListener = null)
ViewComponentResultTest.cs (2)
655var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore"); 662services.AddSingleton<DiagnosticListener>(diagnosticSource);
ViewComponents\ViewViewComponentResultTest.cs (3)
352serviceProvider.Setup(p => p.GetService(typeof(DiagnosticListener))) 507var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore"); 516serviceProvider.Setup(s => s.GetService(typeof(DiagnosticListener))).Returns(diagnosticSource);
ViewExecutorTest.cs (2)
271var diagnosticListener = new DiagnosticListener("Test"); 390private ViewExecutor CreateViewExecutor(DiagnosticListener diagnosticListener = null)
ViewResultExecutorTest.cs (3)
205var diagnosticListener = new DiagnosticListener("Test"); 238var diagnosticListener = new DiagnosticListener("Test"); 331private ViewResultExecutor GetViewExecutor(DiagnosticListener diagnosticListener = null)
Microsoft.AspNetCore.Routing (3)
EndpointRoutingMiddleware.cs (3)
28private readonly DiagnosticListener _diagnosticListener; 39DiagnosticListener diagnosticListener, 151static void Write(DiagnosticListener diagnosticListener, HttpContext httpContext)
Microsoft.AspNetCore.Routing.Tests (6)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
362var listener = new DiagnosticListener("Microsoft.AspNetCore");
EndpointRoutingMiddlewareFormOptionsTest.cs (1)
207DiagnosticListener listener = null,
EndpointRoutingMiddlewareTest.cs (3)
67var listener = new DiagnosticListener("TestListener"); 406services.AddSingleton<DiagnosticListener>(s => new DiagnosticListener("Test")); 467DiagnosticListener listener = null,
RoutingMetricsTests.cs (1)
153DiagnosticListener listener = null,
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
65var listener = new DiagnosticListener("Microsoft.AspNetCore");
Microsoft.AspNetCore.TestHost (3)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24468.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (3)
196private sealed class HostingListener : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>> 221using var subscription = DiagnosticListener.AllListeners.Subscribe(this); 309public void OnNext(DiagnosticListener value)
Microsoft.AspNetCore.TestHost.Tests (4)
TestServerTests.cs (4)
723DiagnosticListener diagnosticListener = null; 728diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>(); 752DiagnosticListener diagnosticListener = null; 755diagnosticListener = app.ApplicationServices.GetRequiredService<DiagnosticListener>();
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (3)
2969private sealed class HostingListener : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object>>, IDisposable 2980_subscription0 = DiagnosticListener.AllListeners.Subscribe(this); 2995public void OnNext(DiagnosticListener value)
Microsoft.Extensions.Hosting (8)
HostApplicationBuilder.cs (1)
240using DiagnosticListener diagnosticListener = HostBuilder.LogHostBuilding(this);
HostBuilder.cs (7)
162using DiagnosticListener diagnosticListener = LogHostBuilding(this); 173private static DiagnosticListener LogHostBuilding(IHostBuilder hostBuilder) 175var diagnosticListener = new DiagnosticListener(HostBuildingDiagnosticListenerName); 185internal static DiagnosticListener LogHostBuilding(HostApplicationBuilder hostApplicationBuilder) 187var diagnosticListener = new DiagnosticListener(HostBuildingDiagnosticListenerName); 200DiagnosticListener diagnosticSource, 366internal static IHost ResolveHost(IServiceProvider serviceProvider, DiagnosticListener diagnosticListener)
MiddlewareAnalysisSample (1)
Startup.cs (1)
16public void Configure(IApplicationBuilder app, ILoggerFactory factory, DiagnosticListener diagnosticListener)
System.Diagnostics.DiagnosticSource (14)
System\Diagnostics\DiagnosticListener.cs (11)
35public static IObservable<DiagnosticListener> AllListeners 170var cur = s_allListeners; 283internal DiagnosticListener Owner = null!; // The DiagnosticListener this is a subscription for. 338private sealed class AllListenerObservable : IObservable<DiagnosticListener> 340public IDisposable Subscribe(IObserver<DiagnosticListener> observer) 345for (DiagnosticListener? cur = s_allListeners; cur != null; cur = cur._next) 358internal void OnNewDiagnosticListener(DiagnosticListener diagnosticListener) 404internal AllListenerSubscription(AllListenerObservable owner, IObserver<DiagnosticListener> subscriber, AllListenerSubscription? next) 420internal readonly IObserver<DiagnosticListener> Subscriber; 455private DiagnosticListener? _next; // We keep a linked list of all NotificationListeners (s_allListeners) 458private static DiagnosticListener? s_allListeners; // linked list of all instances of DiagnosticListeners.
System\Diagnostics\DsesFilterAndTransform.cs (3)
497_diagnosticsListenersSubscription = DiagnosticListener.AllListeners.Subscribe(new CallbackObserver<DiagnosticListener>(delegate (DiagnosticListener newListener)
System.Net.Http (2)
System\Net\Http\DiagnosticsHandler.cs (2)
18private static readonly DiagnosticListener s_diagnosticListener = new DiagnosticListener(DiagnosticsHandlerLoggingStrings.DiagnosticListenerName); 108DiagnosticListener diagnosticListener = s_diagnosticListener;