4 types derived from DiagnosticSource
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
304
private class TestDiagnosticSource :
DiagnosticSource
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
276
private class TestDiagnosticSource :
DiagnosticSource
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
352
private class TestDiagnosticSource :
DiagnosticSource
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DiagnosticListener.cs (1)
29
public partial class DiagnosticListener :
DiagnosticSource
, IObservable<KeyValuePair<string, object?>>, IDisposable
56 references to DiagnosticSource
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
136
services.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>
34
DiagnosticSource
diagnosticSource,
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (3)
37
private readonly
DiagnosticSource
_diagnosticSource;
50
DiagnosticSource
diagnosticSource,
191
static void WriteDiagnosticEvent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(
DiagnosticSource
diagnosticSource, string name, TValue value)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
240
static void WriteDiagnosticEvent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(
DiagnosticSource
diagnosticSource, string name, TValue value)
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostBuilder.cs (1)
75
services.TryAddSingleton<
DiagnosticSource
>(sp => sp.GetRequiredService<DiagnosticListener>());
GenericHost\SlimWebHostBuilder.cs (1)
49
services.TryAddSingleton<
DiagnosticSource
>(sp => sp.GetRequiredService<DiagnosticListener>());
Internal\HostingApplicationDiagnostics.cs (1)
299
DiagnosticSource
diagnosticSource, string name, TValue value)
WebHostBuilder.cs (2)
287
services.TryAddSingleton<
DiagnosticSource
>(sp => sp.GetRequiredService<DiagnosticListener>());
356
services.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.
17
private readonly
DiagnosticSource
_diagnostics;
24
/// <param name="diagnosticSource">The <see cref="
DiagnosticSource
"/> to log when other middleware starts, finishes and throws.</param>
29
public 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)
33
DiagnosticSource
diagnosticSource,
RazorPageBase.cs (3)
42
private
DiagnosticSource
_diagnosticSource = default!;
109
/// Gets or sets a <see cref="System.Diagnostics.
DiagnosticSource
"/> instance used to instrument the page execution.
113
public
DiagnosticSource
DiagnosticSource
RazorPagePropertyActivator.cs (1)
110
else 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)
220
collection.AddSingleton<
DiagnosticSource
>(new TestDiagnosticSource());
Infrastructure\DefaultPageFactoryProviderTest.cs (2)
490
public
DiagnosticSource
DiagnosticSourceWithoutInject { get; set; }
493
public
DiagnosticSource
DiagnosticSourceWithInject { get; set; }
Microsoft.AspNetCore.Mvc.Test (2)
MvcOptionsSetupTest.cs (1)
289
serviceCollection.AddSingleton<
DiagnosticSource
>(diagnosticListener);
MvcServiceCollectionExtensionsTest.cs (1)
403
services.AddSingleton<
DiagnosticSource
>(diagnosticListener);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
293
collection.AddSingleton<
DiagnosticSource
>(new TestDiagnosticSource());
Microsoft.AspNetCore.Routing.Tests (1)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
364
services.AddSingleton<
DiagnosticSource
>(listener);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpProtocol.cs (1)
1428
private static void WriteDiagnosticEvent(
DiagnosticSource
diagnosticSource, string name, HttpProtocol value)
Internal\KestrelServerImpl.cs (1)
75
private static ServiceContext CreateServiceContext(IOptions<KestrelServerOptions> options, ILoggerFactory loggerFactory,
DiagnosticSource
? diagnosticSource, KestrelMetrics metrics)
Internal\ServiceContext.cs (1)
34
public
DiagnosticSource
? DiagnosticSource { get; set; }
Microsoft.AspNetCore.SpaServices.Extensions (10)
AngularCli\AngularCliBuilder.cs (2)
53
var
diagnosticSource = appBuilder.ApplicationServices.GetRequiredService<
DiagnosticSource
>();
AngularCli\AngularCliMiddleware.cs (3)
40
var
diagnosticSource = appBuilder.ApplicationServices.GetRequiredService<
DiagnosticSource
>();
56
string sourcePath, string scriptName, string pkgManagerCommand, int portNumber, ILogger logger,
DiagnosticSource
diagnosticSource, CancellationToken applicationStoppingToken)
Npm\NodeScriptRunner.cs (2)
25
public NodeScriptRunner(string workingDirectory, string scriptName, string? arguments, IDictionary<string, string>? envVars, string pkgManagerCommand,
DiagnosticSource
diagnosticSource, CancellationToken applicationStoppingToken)
80
static void WriteDiagnosticEvent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(
DiagnosticSource
diagnosticSource, string name, TValue value)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (3)
40
var
diagnosticSource = appBuilder.ApplicationServices.GetRequiredService<
DiagnosticSource
>();
62
string sourcePath, string scriptName, string pkgManagerCommand, int portNumber, ILogger logger,
DiagnosticSource
diagnosticSource, CancellationToken applicationStoppingToken)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
67
services.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)
363
DiagnosticSource
diagnosticSource,