114 references to 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 (19)
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"); 1163public NoopDiagnosticListener(bool isEnabled = false) : base("DummyListener")
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);