4 types derived from DiagnosticSource
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
304private class TestDiagnosticSource : DiagnosticSource
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
276private class TestDiagnosticSource : DiagnosticSource
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
352private class TestDiagnosticSource : DiagnosticSource
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DiagnosticListener.cs (1)
29public partial class DiagnosticListener : DiagnosticSource, IObservable<KeyValuePair<string, object?>>, IDisposable
56 references to DiagnosticSource
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
136services.AddSingleton<DiagnosticSource>(listener);
Microsoft.AspNetCore.Diagnostics (6)
DeveloperExceptionPage\DeveloperExceptionPageMiddleware.cs (2)
27/// <param name="diagnosticSource">The <see cref="DiagnosticSource"/> used for writing diagnostic messages.</param> 34DiagnosticSource diagnosticSource,
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (3)
37private readonly DiagnosticSource _diagnosticSource; 50DiagnosticSource diagnosticSource, 191static void WriteDiagnosticEvent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(DiagnosticSource diagnosticSource, string name, TValue value)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
240static void WriteDiagnosticEvent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(DiagnosticSource diagnosticSource, string name, TValue value)
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostBuilder.cs (1)
75services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>());
GenericHost\SlimWebHostBuilder.cs (1)
49services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>());
Internal\HostingApplicationDiagnostics.cs (1)
299DiagnosticSource diagnosticSource, string name, TValue value)
WebHostBuilder.cs (2)
287services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>()); 356services.Replace(ServiceDescriptor.Singleton(typeof(DiagnosticSource), listener!));
Microsoft.AspNetCore.MiddlewareAnalysis (7)
AnalysisMiddleware.cs (5)
11/// to log to a <see cref="DiagnosticSource"/> when other middleware starts, finishes and throws. 17private readonly DiagnosticSource _diagnostics; 24/// <param name="diagnosticSource">The <see cref="DiagnosticSource"/> to log when other middleware starts, finishes and throws.</param> 29public AnalysisMiddleware(RequestDelegate next, DiagnosticSource diagnosticSource, string middlewareName) 41/// Executes the middleware that logs to a <see cref="DiagnosticSource"/> when the next middleware starts, finishes and throws.
AnalysisServiceCollectionExtensions.cs (1)
17/// a <see cref="System.Diagnostics.DiagnosticSource"/> when middleware starts, finishes and throws.
AnalysisStartupFilter.cs (1)
10/// An <see cref="IStartupFilter"/> that configures the middleware pipeline to log to a <see cref="System.Diagnostics.DiagnosticSource"/>
Microsoft.AspNetCore.Mvc.Razor (5)
RazorPageActivator.cs (1)
33DiagnosticSource diagnosticSource,
RazorPageBase.cs (3)
42private DiagnosticSource _diagnosticSource = default!; 109/// Gets or sets a <see cref="System.Diagnostics.DiagnosticSource"/> instance used to instrument the page execution. 113public DiagnosticSource DiagnosticSource
RazorPagePropertyActivator.cs (1)
110else if (property.PropertyType == typeof(DiagnosticSource))
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorHotReloadTest.cs (1)
81.AddSingleton<DiagnosticSource>(diagnosticListener)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
220collection.AddSingleton<DiagnosticSource>(new TestDiagnosticSource());
Infrastructure\DefaultPageFactoryProviderTest.cs (2)
490public DiagnosticSource DiagnosticSourceWithoutInject { get; set; } 493public DiagnosticSource DiagnosticSourceWithInject { get; set; }
Microsoft.AspNetCore.Mvc.Test (2)
MvcOptionsSetupTest.cs (1)
289serviceCollection.AddSingleton<DiagnosticSource>(diagnosticListener);
MvcServiceCollectionExtensionsTest.cs (1)
403services.AddSingleton<DiagnosticSource>(diagnosticListener);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
293collection.AddSingleton<DiagnosticSource>(new TestDiagnosticSource());
Microsoft.AspNetCore.Routing.Tests (1)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
364services.AddSingleton<DiagnosticSource>(listener);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpProtocol.cs (1)
1428private static void WriteDiagnosticEvent(DiagnosticSource diagnosticSource, string name, HttpProtocol value)
Internal\KestrelServerImpl.cs (1)
75private static ServiceContext CreateServiceContext(IOptions<KestrelServerOptions> options, ILoggerFactory loggerFactory, DiagnosticSource? diagnosticSource, KestrelMetrics metrics)
Internal\ServiceContext.cs (1)
34public DiagnosticSource? DiagnosticSource { get; set; }
Microsoft.AspNetCore.SpaServices.Extensions (10)
AngularCli\AngularCliBuilder.cs (2)
53var diagnosticSource = appBuilder.ApplicationServices.GetRequiredService<DiagnosticSource>();
AngularCli\AngularCliMiddleware.cs (3)
40var diagnosticSource = appBuilder.ApplicationServices.GetRequiredService<DiagnosticSource>(); 56string sourcePath, string scriptName, string pkgManagerCommand, int portNumber, ILogger logger, DiagnosticSource diagnosticSource, CancellationToken applicationStoppingToken)
Npm\NodeScriptRunner.cs (2)
25public NodeScriptRunner(string workingDirectory, string scriptName, string? arguments, IDictionary<string, string>? envVars, string pkgManagerCommand, DiagnosticSource diagnosticSource, CancellationToken applicationStoppingToken) 80static void WriteDiagnosticEvent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(DiagnosticSource diagnosticSource, string name, TValue value)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (3)
40var diagnosticSource = appBuilder.ApplicationServices.GetRequiredService<DiagnosticSource>(); 62string sourcePath, string scriptName, string pkgManagerCommand, int portNumber, ILogger logger, DiagnosticSource diagnosticSource, CancellationToken applicationStoppingToken)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
67services.AddSingleton<DiagnosticSource>(listener);
System.Diagnostics.DiagnosticSource (9)
System\Diagnostics\Activity.cs (4)
788/// Use <see cref="DiagnosticSource.StartActivity(Activity, object)"/> to start activity and write start event. 790/// <seealso cref="DiagnosticSource.StartActivity(Activity, object)"/> 844/// Use <see cref="DiagnosticSource.StopActivity(Activity, object)"/> to stop activity and write stop event. 846/// <seealso cref="DiagnosticSource.StopActivity(Activity, object)"/>
System\Diagnostics\DsesFilterAndTransform.cs (5)
407[RequiresUnreferencedCode(DiagnosticSource.WriteRequiresUnreferencedCode)] 621[RequiresUnreferencedCode(DiagnosticSource.WriteRequiresUnreferencedCode)] 676[RequiresUnreferencedCode(DiagnosticSource.WriteRequiresUnreferencedCode)] 714[RequiresUnreferencedCode(DiagnosticSource.WriteRequiresUnreferencedCode)] 994[RequiresUnreferencedCode(DiagnosticSource.WriteRequiresUnreferencedCode)]
System.Net.Http (1)
System\Net\Http\DiagnosticsHandler.cs (1)
363DiagnosticSource diagnosticSource,