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