Base:
method
IsEnabled
System.Diagnostics.DiagnosticSource.IsEnabled(System.String)
1 override of IsEnabled
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
1178
public override bool
IsEnabled
(string name) => _isEnabled;
74 references to IsEnabled
Aspire.Hosting (4)
DistributedApplicationBuilder.cs (4)
460
if (diagnosticListener.IsEnabled() && diagnosticListener.
IsEnabled
(BuilderConstructingEventName))
472
if (diagnosticListener.IsEnabled() && diagnosticListener.
IsEnabled
(BuilderConstructedEventName))
484
if (diagnosticListener.IsEnabled() && diagnosticListener.
IsEnabled
(ApplicationBuildingEventName))
496
if (diagnosticListener.IsEnabled() && diagnosticListener.
IsEnabled
(ApplicationBuiltEventName))
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
208
if (_diagnosticListener.IsEnabled() && _diagnosticListener.
IsEnabled
(eventName))
Microsoft.AspNetCore.Hosting (4)
Internal\HostingApplicationDiagnostics.cs (4)
104
if (_diagnosticListener.
IsEnabled
(DeprecatedDiagnosticsBeginRequestKey))
194
if (_diagnosticListener.
IsEnabled
(DeprecatedDiagnosticsEndRequestKey))
204
if (_diagnosticListener.
IsEnabled
(DiagnosticsUnhandledExceptionKey))
415
if (_diagnosticListener.
IsEnabled
(ActivityStartKey))
Microsoft.AspNetCore.Mvc.Core (34)
MvcCoreDiagnosticListenerExtensions.cs (34)
40
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeActionEventData.EventName))
68
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterActionEventData.EventName))
94
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeAuthorizationFilterOnAuthorizationEventData.EventName))
124
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterAuthorizationFilterOnAuthorizationEventData.EventName))
154
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeAuthorizationFilterOnAuthorizationEventData.EventName))
184
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterAuthorizationFilterOnAuthorizationEventData.EventName))
214
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeResourceFilterOnResourceExecutionEventData.EventName))
244
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterResourceFilterOnResourceExecutionEventData.EventName))
274
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeResourceFilterOnResourceExecutingEventData.EventName))
304
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterResourceFilterOnResourceExecutingEventData.EventName))
334
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeResourceFilterOnResourceExecutedEventData.EventName))
364
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterResourceFilterOnResourceExecutedEventData.EventName))
394
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeExceptionFilterOnException.EventName))
424
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterExceptionFilterOnExceptionEventData.EventName))
454
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeExceptionFilterOnException.EventName))
484
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterExceptionFilterOnExceptionEventData.EventName))
514
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeActionFilterOnActionExecutionEventData.EventName))
544
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterActionFilterOnActionExecutionEventData.EventName))
574
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeActionFilterOnActionExecutingEventData.EventName))
604
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterActionFilterOnActionExecutingEventData.EventName))
634
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeActionFilterOnActionExecutedEventData.EventName))
664
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterActionFilterOnActionExecutedEventData.EventName))
697
if (diagnosticListener.
IsEnabled
("Microsoft.AspNetCore.Mvc.BeforeActionMethod"))
709
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeControllerActionMethodEventData.EventName))
742
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterControllerActionMethodEventData.EventName))
755
if (diagnosticListener.
IsEnabled
("Microsoft.AspNetCore.Mvc.AfterActionMethod"))
787
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeResultFilterOnResultExecutionEventData.EventName))
817
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterResultFilterOnResultExecutionEventData.EventName))
847
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeResultFilterOnResultExecutingEventData.EventName))
877
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterResultFilterOnResultExecutingEventData.EventName))
907
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeResultFilterOnResultExecutedEventData.EventName))
937
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterResultFilterOnResultExecutedEventData.EventName))
967
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeActionResultEventData.EventName))
993
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterActionResultEventData.EventName))
Microsoft.AspNetCore.Mvc.Razor (2)
MvcRazorDiagnosticListenerExtensions.cs (2)
29
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeViewPageEventData.EventName))
59
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterViewPageEventData.EventName))
Microsoft.AspNetCore.Mvc.RazorPages (12)
MvcRazorPagesDiagnosticListenerExtensions.cs (12)
35
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeHandlerMethodEventData.EventName))
71
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterHandlerMethodEventData.EventName))
103
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforePageFilterOnPageHandlerExecutionEventData.EventName))
133
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterPageFilterOnPageHandlerExecutionEventData.EventName))
163
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforePageFilterOnPageHandlerExecutingEventData.EventName))
193
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterPageFilterOnPageHandlerExecutingEventData.EventName))
223
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforePageFilterOnPageHandlerExecutedEventData.EventName))
253
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterPageFilterOnPageHandlerExecutedEventData.EventName))
283
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforePageFilterOnPageHandlerSelectionEventData.EventName))
313
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterPageFilterOnPageHandlerSelectionEventData.EventName))
343
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforePageFilterOnPageHandlerSelectedEventData.EventName))
373
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterPageFilterOnPageHandlerSelectedEventData.EventName))
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
MvcViewFeaturesDiagnosticListenerExtensions.cs (8)
28
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeViewComponentEventData.EventName))
55
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterViewComponentEventData.EventName))
82
if (diagnosticListener.
IsEnabled
(Diagnostics.ViewComponentBeforeViewExecuteEventData.EventName))
108
if (diagnosticListener.
IsEnabled
(Diagnostics.ViewComponentAfterViewExecuteEventData.EventName))
134
if (diagnosticListener.
IsEnabled
(Diagnostics.BeforeViewEventData.EventName))
156
if (diagnosticListener.
IsEnabled
(Diagnostics.AfterViewEventData.EventName))
181
if (diagnosticListener.
IsEnabled
(Diagnostics.ViewFoundEventData.EventName))
212
if (diagnosticListener.
IsEnabled
(Diagnostics.ViewNotFoundEventData.EventName))
Microsoft.AspNetCore.Routing (1)
EndpointRoutingMiddleware.cs (1)
113
if (_diagnosticListener.IsEnabled() && _diagnosticListener.
IsEnabled
(DiagnosticsEndpointMatchedKey))
Microsoft.Extensions.Hosting (3)
HostBuilder.cs (3)
177
if (diagnosticListener.IsEnabled() && diagnosticListener.
IsEnabled
(HostBuildingEventName))
189
if (diagnosticListener.IsEnabled() && diagnosticListener.
IsEnabled
(HostBuildingEventName))
379
if (diagnosticListener.IsEnabled() && diagnosticListener.
IsEnabled
(HostBuiltEventName))
System.Net.Http (5)
System\Net\Http\DiagnosticsHandler.cs (5)
137
if (diagnosticListener.
IsEnabled
(DiagnosticsHandlerLoggingStrings.RequestActivityStartName))
144
if (diagnosticListener.
IsEnabled
(DiagnosticsHandlerLoggingStrings.RequestWriteNameDeprecated))
182
if (diagnosticListener.
IsEnabled
(DiagnosticsHandlerLoggingStrings.ExceptionEventName))
218
if (diagnosticListener.
IsEnabled
(DiagnosticsHandlerLoggingStrings.RequestActivityStopName))
227
if (diagnosticListener.
IsEnabled
(DiagnosticsHandlerLoggingStrings.ResponseWriteNameDeprecated))