diff --git a/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp3.0.cs b/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp3.0.cs index 5294f760ff77..1368446b758e 100644 --- a/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp3.0.cs +++ b/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp3.0.cs @@ -1728,279 +1728,279 @@ public partial interface IAntiforgeryValidationFailedResult : Microsoft.AspNetCo } namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed partial class AfterAction : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterActionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterAction"; - public AfterAction(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) { } + public AfterActionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Http.HttpContext HttpContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Routing.RouteData RouteData { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class AfterActionMethod : Microsoft.AspNetCore.Mvc.Diagnostics.EventData - { - public const string EventName = "Microsoft.AspNetCore.Mvc.AfterActionMethod"; - public AfterActionMethod(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, object controller, Microsoft.AspNetCore.Mvc.IActionResult result) { } - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Arguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - public object Controller { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - protected override int Count { get { throw null; } } - protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } - public Microsoft.AspNetCore.Mvc.IActionResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - public sealed partial class AfterActionResult : Microsoft.AspNetCore.Mvc.Diagnostics.EventData - { - public const string EventName = "Microsoft.AspNetCore.Mvc.AfterActionResult"; - public AfterActionResult(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) { } - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - protected override int Count { get { throw null; } } - protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } - public Microsoft.AspNetCore.Mvc.IActionResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - public sealed partial class AfterOnActionExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterActionFilterOnActionExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnActionExecuted"; - public AfterOnActionExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterActionFilterOnActionExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnActionExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterActionFilterOnActionExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnActionExecuting"; - public AfterOnActionExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterActionFilterOnActionExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext ActionExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnActionExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterActionFilterOnActionExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnActionExecution"; - public AfterOnActionExecution(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterActionFilterOnActionExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnAuthorization : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterActionResultEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + { + public const string EventName = "Microsoft.AspNetCore.Mvc.AfterActionResult"; + public AfterActionResultEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) { } + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + protected override int Count { get { throw null; } } + protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } + public Microsoft.AspNetCore.Mvc.IActionResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + } + public sealed partial class AfterAuthorizationFilterOnAuthorizationEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnAuthorization"; - public AfterOnAuthorization(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterAuthorizationFilterOnAuthorizationEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext AuthorizationContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnException : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterControllerActionMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + { + public const string EventName = "Microsoft.AspNetCore.Mvc.AfterControllerActionMethod"; + public AfterControllerActionMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, object controller, Microsoft.AspNetCore.Mvc.IActionResult result) { } + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Arguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public object Controller { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + protected override int Count { get { throw null; } } + protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } + public Microsoft.AspNetCore.Mvc.IActionResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + } + public sealed partial class AfterExceptionFilterOnExceptionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnException"; - public AfterOnException(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterExceptionFilterOnExceptionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ExceptionContext ExceptionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnResourceExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterResourceFilterOnResourceExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted"; - public AfterOnResourceExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterResourceFilterOnResourceExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class AfterOnResourceExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterResourceFilterOnResourceExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting"; - public AfterOnResourceExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterResourceFilterOnResourceExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class AfterOnResourceExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterResourceFilterOnResourceExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnResourceExecution"; - public AfterOnResourceExecution(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterResourceFilterOnResourceExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class AfterOnResultExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterResultFilterOnResultExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnResultExecuted"; - public AfterOnResultExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterResultFilterOnResultExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class AfterOnResultExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterResultFilterOnResultExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnResultExecuting"; - public AfterOnResultExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterResultFilterOnResultExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class AfterOnResultExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterResultFilterOnResultExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnResultExecution"; - public AfterOnResultExecution(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public AfterResultFilterOnResultExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeAction : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeActionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeAction"; - public BeforeAction(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) { } + public BeforeActionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Http.HttpContext HttpContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Routing.RouteData RouteData { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeActionMethod : Microsoft.AspNetCore.Mvc.Diagnostics.EventData - { - public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeActionMethod"; - public BeforeActionMethod(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, object controller) { } - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Arguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - public object Controller { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - protected override int Count { get { throw null; } } - protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } - } - public sealed partial class BeforeActionResult : Microsoft.AspNetCore.Mvc.Diagnostics.EventData - { - public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeActionResult"; - public BeforeActionResult(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) { } - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - protected override int Count { get { throw null; } } - protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } - public Microsoft.AspNetCore.Mvc.IActionResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - public sealed partial class BeforeOnActionExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeActionFilterOnActionExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted"; - public BeforeOnActionExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeActionFilterOnActionExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnActionExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeActionFilterOnActionExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting"; - public BeforeOnActionExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeActionFilterOnActionExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext ActionExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnActionExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeActionFilterOnActionExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnActionExecution"; - public BeforeOnActionExecution(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeActionFilterOnActionExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext ActionExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnAuthorization : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeActionResultEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + { + public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeActionResult"; + public BeforeActionResultEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) { } + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + protected override int Count { get { throw null; } } + protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } + public Microsoft.AspNetCore.Mvc.IActionResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + } + public sealed partial class BeforeAuthorizationFilterOnAuthorizationEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnAuthorization"; - public BeforeOnAuthorization(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeAuthorizationFilterOnAuthorizationEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext AuthorizationContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnException : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeControllerActionMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + { + public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod"; + public BeforeControllerActionMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary actionArguments, object controller) { } + public System.Collections.Generic.IReadOnlyDictionary ActionArguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public object Controller { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + protected sealed override int Count { get { throw null; } } + protected sealed override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } + } + public sealed partial class BeforeExceptionFilterOnException : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnException"; - public BeforeOnException(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeExceptionFilterOnException(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ExceptionContext ExceptionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnResourceExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeResourceFilterOnResourceExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted"; - public BeforeOnResourceExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeResourceFilterOnResourceExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeOnResourceExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeResourceFilterOnResourceExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting"; - public BeforeOnResourceExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeResourceFilterOnResourceExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeOnResourceExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeResourceFilterOnResourceExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnResourceExecution"; - public BeforeOnResourceExecution(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeResourceFilterOnResourceExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeOnResultExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeResultFilterOnResultExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted"; - public BeforeOnResultExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeResultFilterOnResultExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeOnResultExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeResultFilterOnResultExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting"; - public BeforeOnResultExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeResultFilterOnResultExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeOnResultExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeResultFilterOnResultExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnResultExecution"; - public BeforeOnResultExecution(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } + public BeforeResultFilterOnResultExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } diff --git a/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs index 8c98d8f30278..b388140a57f0 100644 --- a/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs @@ -10,10 +10,10 @@ namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed class BeforeAction : EventData + public sealed class BeforeActionEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeAction); - public BeforeAction(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) + public const string EventName = EventNamespace + "BeforeAction"; + public BeforeActionEventData(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) { ActionDescriptor = actionDescriptor; HttpContext = httpContext; @@ -35,11 +35,11 @@ public BeforeAction(ActionDescriptor actionDescriptor, HttpContext httpContext, }; } - public sealed class AfterAction : EventData + public sealed class AfterActionEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterAction); + public const string EventName = EventNamespace + "AfterAction"; - public AfterAction(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) + public AfterActionEventData(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) { ActionDescriptor = actionDescriptor; HttpContext = httpContext; @@ -61,11 +61,11 @@ public AfterAction(ActionDescriptor actionDescriptor, HttpContext httpContext, R }; } - public sealed class BeforeOnAuthorization : EventData + public sealed class BeforeAuthorizationFilterOnAuthorizationEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnAuthorization); + public const string EventName = EventNamespace + "BeforeOnAuthorization"; - public BeforeOnAuthorization(ActionDescriptor actionDescriptor, AuthorizationFilterContext authorizationContext, IFilterMetadata filter) + public BeforeAuthorizationFilterOnAuthorizationEventData(ActionDescriptor actionDescriptor, AuthorizationFilterContext authorizationContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; AuthorizationContext = authorizationContext; @@ -87,11 +87,11 @@ public BeforeOnAuthorization(ActionDescriptor actionDescriptor, AuthorizationFil }; } - public sealed class AfterOnAuthorization : EventData + public sealed class AfterAuthorizationFilterOnAuthorizationEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnAuthorization); + public const string EventName = EventNamespace + "AfterOnAuthorization"; - public AfterOnAuthorization(ActionDescriptor actionDescriptor, AuthorizationFilterContext authorizationContext, IFilterMetadata filter) + public AfterAuthorizationFilterOnAuthorizationEventData(ActionDescriptor actionDescriptor, AuthorizationFilterContext authorizationContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; AuthorizationContext = authorizationContext; @@ -113,11 +113,11 @@ public AfterOnAuthorization(ActionDescriptor actionDescriptor, AuthorizationFilt }; } - public sealed class BeforeOnResourceExecution : EventData + public sealed class BeforeResourceFilterOnResourceExecutionEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnResourceExecution); + public const string EventName = EventNamespace + "BeforeOnResourceExecution"; - public BeforeOnResourceExecution(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter) + public BeforeResourceFilterOnResourceExecutionEventData(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ResourceExecutingContext = resourceExecutingContext; @@ -139,11 +139,11 @@ public BeforeOnResourceExecution(ActionDescriptor actionDescriptor, ResourceExec }; } - public sealed class AfterOnResourceExecution : EventData + public sealed class AfterResourceFilterOnResourceExecutionEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnResourceExecution); + public const string EventName = EventNamespace + "AfterOnResourceExecution"; - public AfterOnResourceExecution(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter) + public AfterResourceFilterOnResourceExecutionEventData(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ResourceExecutedContext = resourceExecutedContext; @@ -165,11 +165,11 @@ public AfterOnResourceExecution(ActionDescriptor actionDescriptor, ResourceExecu }; } - public sealed class BeforeOnResourceExecuting : EventData + public sealed class BeforeResourceFilterOnResourceExecutingEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnResourceExecuting); + public const string EventName = EventNamespace + "BeforeOnResourceExecuting"; - public BeforeOnResourceExecuting(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter) + public BeforeResourceFilterOnResourceExecutingEventData(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ResourceExecutingContext = resourceExecutingContext; @@ -191,11 +191,11 @@ public BeforeOnResourceExecuting(ActionDescriptor actionDescriptor, ResourceExec }; } - public sealed class AfterOnResourceExecuting : EventData + public sealed class AfterResourceFilterOnResourceExecutingEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnResourceExecuting); + public const string EventName = EventNamespace + "AfterOnResourceExecuting"; - public AfterOnResourceExecuting(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter) + public AfterResourceFilterOnResourceExecutingEventData(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ResourceExecutingContext = resourceExecutingContext; @@ -217,11 +217,11 @@ public AfterOnResourceExecuting(ActionDescriptor actionDescriptor, ResourceExecu }; } - public sealed class BeforeOnResourceExecuted : EventData + public sealed class BeforeResourceFilterOnResourceExecutedEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnResourceExecuted); + public const string EventName = EventNamespace + "BeforeOnResourceExecuted"; - public BeforeOnResourceExecuted(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter) + public BeforeResourceFilterOnResourceExecutedEventData(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ResourceExecutedContext = resourceExecutedContext; @@ -243,11 +243,11 @@ public BeforeOnResourceExecuted(ActionDescriptor actionDescriptor, ResourceExecu }; } - public sealed class AfterOnResourceExecuted : EventData + public sealed class AfterResourceFilterOnResourceExecutedEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnResourceExecuted); + public const string EventName = EventNamespace + "AfterOnResourceExecuted"; - public AfterOnResourceExecuted(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter) + public AfterResourceFilterOnResourceExecutedEventData(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ResourceExecutedContext = resourceExecutedContext; @@ -269,11 +269,11 @@ public AfterOnResourceExecuted(ActionDescriptor actionDescriptor, ResourceExecut }; } - public sealed class BeforeOnException : EventData + public sealed class BeforeExceptionFilterOnException : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnException); + public const string EventName = EventNamespace + "BeforeOnException"; - public BeforeOnException(ActionDescriptor actionDescriptor, ExceptionContext exceptionContext, IFilterMetadata filter) + public BeforeExceptionFilterOnException(ActionDescriptor actionDescriptor, ExceptionContext exceptionContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ExceptionContext = exceptionContext; @@ -295,11 +295,11 @@ public BeforeOnException(ActionDescriptor actionDescriptor, ExceptionContext exc }; } - public sealed class AfterOnException : EventData + public sealed class AfterExceptionFilterOnExceptionEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnException); + public const string EventName = EventNamespace + "AfterOnException"; - public AfterOnException(ActionDescriptor actionDescriptor, ExceptionContext exceptionContext, IFilterMetadata filter) + public AfterExceptionFilterOnExceptionEventData(ActionDescriptor actionDescriptor, ExceptionContext exceptionContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ExceptionContext = exceptionContext; @@ -321,11 +321,11 @@ public AfterOnException(ActionDescriptor actionDescriptor, ExceptionContext exce }; } - public sealed class BeforeOnActionExecution : EventData + public sealed class BeforeActionFilterOnActionExecutionEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnActionExecution); + public const string EventName = EventNamespace + "BeforeOnActionExecution"; - public BeforeOnActionExecution(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter) + public BeforeActionFilterOnActionExecutionEventData(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ActionExecutingContext = actionExecutingContext; @@ -347,11 +347,11 @@ public BeforeOnActionExecution(ActionDescriptor actionDescriptor, ActionExecutin }; } - public sealed class AfterOnActionExecution : EventData + public sealed class AfterActionFilterOnActionExecutionEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnActionExecution); + public const string EventName = EventNamespace + "AfterOnActionExecution"; - public AfterOnActionExecution(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter) + public AfterActionFilterOnActionExecutionEventData(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ActionExecutedContext = actionExecutedContext; @@ -373,11 +373,11 @@ public AfterOnActionExecution(ActionDescriptor actionDescriptor, ActionExecutedC }; } - public sealed class BeforeOnActionExecuting : EventData + public sealed class BeforeActionFilterOnActionExecutingEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnActionExecuting); + public const string EventName = EventNamespace + "BeforeOnActionExecuting"; - public BeforeOnActionExecuting(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter) + public BeforeActionFilterOnActionExecutingEventData(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ActionExecutingContext = actionExecutingContext; @@ -399,11 +399,11 @@ public BeforeOnActionExecuting(ActionDescriptor actionDescriptor, ActionExecutin }; } - public sealed class AfterOnActionExecuting : EventData + public sealed class AfterActionFilterOnActionExecutingEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnActionExecuting); + public const string EventName = EventNamespace + "AfterOnActionExecuting"; - public AfterOnActionExecuting(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter) + public AfterActionFilterOnActionExecutingEventData(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ActionExecutingContext = actionExecutingContext; @@ -425,11 +425,11 @@ public AfterOnActionExecuting(ActionDescriptor actionDescriptor, ActionExecuting }; } - public sealed class BeforeOnActionExecuted : EventData + public sealed class BeforeActionFilterOnActionExecutedEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeOnActionExecuted); + public const string EventName = EventNamespace + "BeforeOnActionExecuted"; - public BeforeOnActionExecuted(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter) + public BeforeActionFilterOnActionExecutedEventData(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ActionExecutedContext = actionExecutedContext; @@ -451,11 +451,11 @@ public BeforeOnActionExecuted(ActionDescriptor actionDescriptor, ActionExecutedC }; } - public sealed class AfterOnActionExecuted : EventData + public sealed class AfterActionFilterOnActionExecutedEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterOnActionExecuted); + public const string EventName = EventNamespace + "AfterOnActionExecuted"; - public AfterOnActionExecuted(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter) + public AfterActionFilterOnActionExecutedEventData(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter) { ActionDescriptor = actionDescriptor; ActionExecutedContext = actionExecutedContext; @@ -477,37 +477,37 @@ public AfterOnActionExecuted(ActionDescriptor actionDescriptor, ActionExecutedCo }; } - public sealed class BeforeActionMethod : EventData + public sealed class BeforeControllerActionMethodEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeActionMethod); + public const string EventName = EventNamespace + "BeforeControllerActionMethod"; - public BeforeActionMethod(ActionContext actionContext, IReadOnlyDictionary arguments, object controller) + public BeforeControllerActionMethodEventData(ActionContext actionContext, IReadOnlyDictionary actionArguments, object controller) { ActionContext = actionContext; - Arguments = arguments; + ActionArguments = actionArguments; Controller = controller; } public ActionContext ActionContext { get; } - public IReadOnlyDictionary Arguments { get; } + public IReadOnlyDictionary ActionArguments { get; } public object Controller { get; } - protected override int Count => 3; + protected sealed override int Count => 3; - protected override KeyValuePair this[int index] => index switch + protected sealed override KeyValuePair this[int index] => index switch { 0 => new KeyValuePair(nameof(ActionContext), ActionContext), - 1 => new KeyValuePair(nameof(Arguments), Arguments), + 1 => new KeyValuePair(nameof(ActionArguments), ActionArguments), 2 => new KeyValuePair(nameof(Controller), Controller), _ => throw new IndexOutOfRangeException(nameof(index)) }; } - public sealed class AfterActionMethod : EventData + public sealed class AfterControllerActionMethodEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterActionMethod); + public const string EventName = EventNamespace + "AfterControllerActionMethod"; - public AfterActionMethod(ActionContext actionContext, IReadOnlyDictionary arguments, object controller, IActionResult result) + public AfterControllerActionMethodEventData(ActionContext actionContext, IReadOnlyDictionary arguments, object controller, IActionResult result) { ActionContext = actionContext; Arguments = arguments; @@ -532,11 +532,11 @@ public AfterActionMethod(ActionContext actionContext, IReadOnlyDictionary actionArguments, @@ -683,7 +683,7 @@ public static void BeforeActionMethod( Debug.Assert(actionArguments != null); Debug.Assert(controller != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { BeforeActionMethodImpl(diagnosticListener, actionContext, actionArguments, controller); @@ -692,11 +692,24 @@ public static void BeforeActionMethod( private static void BeforeActionMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary actionArguments, object controller) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeActionMethod.EventName)) + // Intellitrace uses this in VS, so we fire the old event with camelCase event names. + if (diagnosticListener.IsEnabled("Microsoft.AspNetCore.Mvc.BeforeActionMethod")) { diagnosticListener.Write( - Diagnostics.BeforeActionMethod.EventName, - new BeforeActionMethod( + "Microsoft.AspNetCore.Mvc.BeforeActionMethod", + new + { + actionContext, + actionArguments, + controller + }); + } + + if (diagnosticListener.IsEnabled(Diagnostics.BeforeControllerActionMethodEventData.EventName)) + { + diagnosticListener.Write( + Diagnostics.BeforeControllerActionMethodEventData.EventName, + new BeforeControllerActionMethodEventData( actionContext, actionArguments, controller @@ -704,7 +717,7 @@ private static void BeforeActionMethodImpl(DiagnosticListener diagnosticListener } } - public static void AfterActionMethod( + public static void AfterControllerActionMethod( this DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary actionArguments, @@ -716,7 +729,7 @@ public static void AfterActionMethod( Debug.Assert(actionArguments != null); Debug.Assert(controller != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { AfterActionMethodImpl(diagnosticListener, actionContext, actionArguments, controller, result); @@ -725,17 +738,31 @@ public static void AfterActionMethod( private static void AfterActionMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary actionArguments, object controller, IActionResult result) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterActionMethod.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterControllerActionMethodEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterActionMethod.EventName, - new AfterActionMethod( + Diagnostics.AfterControllerActionMethodEventData.EventName, + new AfterControllerActionMethodEventData( actionContext, actionArguments, controller, result )); } + + // Firing the old event for compat. + if (diagnosticListener.IsEnabled("Microsoft.AspNetCore.Mvc.AfterActionMethod")) + { + diagnosticListener.Write( + "Microsoft.AspNetCore.Mvc.AfterActionMethod", + new + { + actionContext, + actionArguments, + controller, + result + }); + } } public static void BeforeOnResultExecution( @@ -747,7 +774,7 @@ public static void BeforeOnResultExecution( Debug.Assert(resultExecutingContext != null); Debug.Assert(filter != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { BeforeOnResultExecutionImpl(diagnosticListener, resultExecutingContext, filter); @@ -756,11 +783,11 @@ public static void BeforeOnResultExecution( private static void BeforeOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IAsyncResultFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnResultExecution.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeResultFilterOnResultExecutionEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnResultExecution.EventName, - new BeforeOnResultExecution( + Diagnostics.BeforeResultFilterOnResultExecutionEventData.EventName, + new BeforeResultFilterOnResultExecutionEventData( resultExecutingContext.ActionDescriptor, resultExecutingContext, filter @@ -777,7 +804,7 @@ public static void AfterOnResultExecution( Debug.Assert(resultExecutedContext != null); Debug.Assert(filter != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { AfterOnResultExecutionImpl(diagnosticListener, resultExecutedContext, filter); @@ -786,11 +813,11 @@ public static void AfterOnResultExecution( private static void AfterOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IAsyncResultFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnResultExecution.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterResultFilterOnResultExecutionEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnResultExecution.EventName, - new AfterOnResultExecution( + Diagnostics.AfterResultFilterOnResultExecutionEventData.EventName, + new AfterResultFilterOnResultExecutionEventData( resultExecutedContext.ActionDescriptor, resultExecutedContext, filter @@ -807,7 +834,7 @@ public static void BeforeOnResultExecuting( Debug.Assert(resultExecutingContext != null); Debug.Assert(filter != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { BeforeOnResultExecutingImpl(diagnosticListener, resultExecutingContext, filter); @@ -816,11 +843,11 @@ public static void BeforeOnResultExecuting( private static void BeforeOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnResultExecuting.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeResultFilterOnResultExecutingEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnResultExecuting.EventName, - new BeforeOnResultExecuting( + Diagnostics.BeforeResultFilterOnResultExecutingEventData.EventName, + new BeforeResultFilterOnResultExecutingEventData( resultExecutingContext.ActionDescriptor, resultExecutingContext, filter @@ -837,7 +864,7 @@ public static void AfterOnResultExecuting( Debug.Assert(resultExecutingContext != null); Debug.Assert(filter != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { AfterOnResultExecutingImpl(diagnosticListener, resultExecutingContext, filter); @@ -846,11 +873,11 @@ public static void AfterOnResultExecuting( private static void AfterOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnResultExecuting.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterResultFilterOnResultExecutingEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnResultExecuting.EventName, - new AfterOnResultExecuting( + Diagnostics.AfterResultFilterOnResultExecutingEventData.EventName, + new AfterResultFilterOnResultExecutingEventData( resultExecutingContext.ActionDescriptor, resultExecutingContext, filter @@ -867,7 +894,7 @@ public static void BeforeOnResultExecuted( Debug.Assert(resultExecutedContext != null); Debug.Assert(filter != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { BeforeOnResultExecutedImpl(diagnosticListener, resultExecutedContext, filter); @@ -876,11 +903,11 @@ public static void BeforeOnResultExecuted( private static void BeforeOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnResultExecuted.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeResultFilterOnResultExecutedEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnResultExecuted.EventName, - new BeforeOnResultExecuted( + Diagnostics.BeforeResultFilterOnResultExecutedEventData.EventName, + new BeforeResultFilterOnResultExecutedEventData( resultExecutedContext.ActionDescriptor, resultExecutedContext, filter @@ -897,7 +924,7 @@ public static void AfterOnResultExecuted( Debug.Assert(resultExecutedContext != null); Debug.Assert(filter != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { AfterOnResultExecutedImpl(diagnosticListener, resultExecutedContext, filter); @@ -906,11 +933,11 @@ public static void AfterOnResultExecuted( private static void AfterOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnResultExecuted.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterResultFilterOnResultExecutedEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnResultExecuted.EventName, - new AfterOnResultExecuted( + Diagnostics.AfterResultFilterOnResultExecutedEventData.EventName, + new AfterResultFilterOnResultExecutedEventData( resultExecutedContext.ActionDescriptor, resultExecutedContext, filter @@ -927,7 +954,7 @@ public static void BeforeActionResult( Debug.Assert(actionContext != null); Debug.Assert(result != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { BeforeActionResultImpl(diagnosticListener, actionContext, result); @@ -936,11 +963,11 @@ public static void BeforeActionResult( private static void BeforeActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeActionResult.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeActionResultEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeActionResult.EventName, - new BeforeActionResult(actionContext, result)); + Diagnostics.BeforeActionResultEventData.EventName, + new BeforeActionResultEventData(actionContext, result)); } } @@ -953,7 +980,7 @@ public static void AfterActionResult( Debug.Assert(actionContext != null); Debug.Assert(result != null); - // Inlinable fast-path check if Diagnositcs is enabled + // Inlinable fast-path check if diagnostic listener is enabled if (diagnosticListener.IsEnabled()) { AfterActionResultImpl(diagnosticListener, actionContext, result); @@ -962,11 +989,11 @@ public static void AfterActionResult( private static void AfterActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterActionResult.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterActionResultEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterActionResult.EventName, - new AfterActionResult(actionContext, result)); + Diagnostics.AfterActionResultEventData.EventName, + new AfterActionResultEventData(actionContext, result)); } } } diff --git a/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp3.0.cs b/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp3.0.cs index 4d088ced51d9..d7bb661a5bb7 100644 --- a/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp3.0.cs +++ b/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp3.0.cs @@ -23,10 +23,10 @@ public partial interface IRazorCompiledItemProvider } namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed partial class AfterViewPage : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterViewPageEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.Razor.AfterViewPage"; - public AfterViewPage(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) { } + public AfterViewPageEventData(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Http.HttpContext HttpContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } @@ -34,10 +34,10 @@ public AfterViewPage(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.A public Microsoft.AspNetCore.Mvc.Razor.IRazorPage Page { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeViewPage : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeViewPageEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.Razor.BeforeViewPage"; - public BeforeViewPage(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) { } + public BeforeViewPageEventData(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Http.HttpContext HttpContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } diff --git a/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs index d87b9709ad25..45680406f1b2 100644 --- a/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs @@ -10,13 +10,13 @@ namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed class BeforeViewPage : EventData + public sealed class BeforeViewPageEventData : EventData { public const string EventName = EventNamespace + "Razor." + - nameof(BeforeViewPage); + "BeforeViewPage"; - public BeforeViewPage(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) + public BeforeViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) { Page = page; ViewContext = viewContext; @@ -41,13 +41,13 @@ public BeforeViewPage(IRazorPage page, ViewContext viewContext, ActionDescriptor }; } - public sealed class AfterViewPage : EventData + public sealed class AfterViewPageEventData : EventData { public const string EventName = EventNamespace + "Razor." + - nameof(AfterViewPage); + "AfterViewPage"; - public AfterViewPage(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) + public AfterViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) { Page = page; ViewContext = viewContext; diff --git a/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs b/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs index aff60a929826..d12bd3f3eb0b 100644 --- a/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs +++ b/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs @@ -27,11 +27,11 @@ private static void BeforeViewPageImpl( IRazorPage page, ViewContext viewContext) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeViewPage.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeViewPageEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeViewPage.EventName, - new BeforeViewPage( + Diagnostics.BeforeViewPageEventData.EventName, + new BeforeViewPageEventData( page, viewContext, viewContext.ActionDescriptor, @@ -57,11 +57,11 @@ private static void AfterViewPageImpl( IRazorPage page, ViewContext viewContext) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterViewPage.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterViewPageEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterViewPage.EventName, - new AfterViewPage( + Diagnostics.AfterViewPageEventData.EventName, + new AfterViewPageEventData( page, viewContext, viewContext.ActionDescriptor, diff --git a/src/Mvc/Mvc.RazorPages/ref/Microsoft.AspNetCore.Mvc.RazorPages.netcoreapp3.0.cs b/src/Mvc/Mvc.RazorPages/ref/Microsoft.AspNetCore.Mvc.RazorPages.netcoreapp3.0.cs index dbd9d6fcb792..4043d5ededb6 100644 --- a/src/Mvc/Mvc.RazorPages/ref/Microsoft.AspNetCore.Mvc.RazorPages.netcoreapp3.0.cs +++ b/src/Mvc/Mvc.RazorPages/ref/Microsoft.AspNetCore.Mvc.RazorPages.netcoreapp3.0.cs @@ -145,10 +145,10 @@ public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel mode } namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed partial class AfterHandlerMethod : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterHandlerMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterHandlerMethod"; - public AfterHandlerMethod(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance, Microsoft.AspNetCore.Mvc.IActionResult result) { } + public AfterHandlerMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance, Microsoft.AspNetCore.Mvc.IActionResult result) { } public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Arguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } @@ -157,60 +157,60 @@ public AfterHandlerMethod(Microsoft.AspNetCore.Mvc.ActionContext actionContext, protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.IActionResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class AfterOnPageHandlerExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterPageFilterOnPageHandlerExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnPageHandlerExecuted"; - public AfterOnPageHandlerExecuted(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } + public AfterPageFilterOnPageHandlerExecutedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext HandlerExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnPageHandlerExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterPageFilterOnPageHandlerExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnPageHandlerExecuting"; - public AfterOnPageHandlerExecuting(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } + public AfterPageFilterOnPageHandlerExecutingEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnPageHandlerExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterPageFilterOnPageHandlerExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnPageHandlerExecution"; - public AfterOnPageHandlerExecution(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } + public AfterPageFilterOnPageHandlerExecutionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext HandlerExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnPageHandlerSelected : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterPageFilterOnPageHandlerSelectedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnPageHandlerSelected"; - public AfterOnPageHandlerSelected(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } + public AfterPageFilterOnPageHandlerSelectedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class AfterOnPageHandlerSelection : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterPageFilterOnPageHandlerSelectionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterOnPageHandlerSelection"; - public AfterOnPageHandlerSelection(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } + public AfterPageFilterOnPageHandlerSelectionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeHandlerMethod : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeHandlerMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeHandlerMethod"; - public BeforeHandlerMethod(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance) { } + public BeforeHandlerMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance) { } public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Arguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } @@ -218,50 +218,50 @@ public BeforeHandlerMethod(Microsoft.AspNetCore.Mvc.ActionContext actionContext, public object Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnPageHandlerExecuted : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforePageFilterOnPageHandlerExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnPageHandlerExecuted"; - public BeforeOnPageHandlerExecuted(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } + public BeforePageFilterOnPageHandlerExecutedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext HandlerExecutedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnPageHandlerExecuting : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforePageFilterOnPageHandlerExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnPageHandlerExecuting"; - public BeforeOnPageHandlerExecuting(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } + public BeforePageFilterOnPageHandlerExecutingEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutingContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnPageHandlerExecution : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforePageFilterOnPageHandlerExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnPageHandlerExecution"; - public BeforeOnPageHandlerExecution(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutionContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } + public BeforePageFilterOnPageHandlerExecutionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutionContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnPageHandlerSelected : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforePageFilterOnPageHandlerSelectedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnPageHandlerSelected"; - public BeforeOnPageHandlerSelected(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } + public BeforePageFilterOnPageHandlerSelectedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } } - public sealed partial class BeforeOnPageHandlerSelection : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforePageFilterOnPageHandlerSelectionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeOnPageHandlerSelection"; - public BeforeOnPageHandlerSelection(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } + public BeforePageFilterOnPageHandlerSelectionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) { } public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } diff --git a/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs index 78285b68c4a8..5706b255d861 100644 --- a/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs @@ -4,17 +4,16 @@ using System; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure; using Microsoft.AspNetCore.Mvc.RazorPages; -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure; namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed class BeforeHandlerMethod : EventData + public sealed class BeforeHandlerMethodEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeHandlerMethod); + public const string EventName = EventNamespace + "BeforeHandlerMethod"; - public BeforeHandlerMethod(ActionContext actionContext, IReadOnlyDictionary arguments, HandlerMethodDescriptor handlerMethodDescriptor, object instance) + public BeforeHandlerMethodEventData(ActionContext actionContext, IReadOnlyDictionary arguments, HandlerMethodDescriptor handlerMethodDescriptor, object instance) { ActionContext = actionContext; Arguments = arguments; @@ -39,11 +38,11 @@ public BeforeHandlerMethod(ActionContext actionContext, IReadOnlyDictionary arguments, HandlerMethodDescriptor handlerMethodDescriptor, object instance, IActionResult result) + public AfterHandlerMethodEventData(ActionContext actionContext, IReadOnlyDictionary arguments, HandlerMethodDescriptor handlerMethodDescriptor, object instance, IActionResult result) { ActionContext = actionContext; Arguments = arguments; @@ -71,11 +70,11 @@ public AfterHandlerMethod(ActionContext actionContext, IReadOnlyDictionary arguments, object instance) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeHandlerMethod.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeHandlerMethodEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeHandlerMethod.EventName, - new BeforeHandlerMethod( + Diagnostics.BeforeHandlerMethodEventData.EventName, + new BeforeHandlerMethodEventData( actionContext, arguments, handlerMethodDescriptor, @@ -69,11 +69,11 @@ public static void AfterHandlerMethod( private static void AfterHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, HandlerMethodDescriptor handlerMethodDescriptor, IReadOnlyDictionary arguments, object instance, IActionResult result) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterHandlerMethod.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterHandlerMethodEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterHandlerMethod.EventName, - new AfterHandlerMethod( + Diagnostics.AfterHandlerMethodEventData.EventName, + new AfterHandlerMethodEventData( actionContext, arguments, handlerMethodDescriptor, @@ -101,11 +101,11 @@ public static void BeforeOnPageHandlerExecution( private static void BeforeOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutionContext, IAsyncPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnPageHandlerExecution.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforePageFilterOnPageHandlerExecutionEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnPageHandlerExecution.EventName, - new BeforeOnPageHandlerExecution( + Diagnostics.BeforePageFilterOnPageHandlerExecutionEventData.EventName, + new BeforePageFilterOnPageHandlerExecutionEventData( handlerExecutionContext.ActionDescriptor, handlerExecutionContext, filter @@ -131,11 +131,11 @@ public static void AfterOnPageHandlerExecution( private static void AfterOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IAsyncPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnPageHandlerExecution.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterPageFilterOnPageHandlerExecutionEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnPageHandlerExecution.EventName, - new AfterOnPageHandlerExecution( + Diagnostics.AfterPageFilterOnPageHandlerExecutionEventData.EventName, + new AfterPageFilterOnPageHandlerExecutionEventData( handlerExecutedContext.ActionDescriptor, handlerExecutedContext, filter @@ -161,11 +161,11 @@ public static void BeforeOnPageHandlerExecuting( private static void BeforeOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnPageHandlerExecuting.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforePageFilterOnPageHandlerExecutingEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnPageHandlerExecuting.EventName, - new BeforeOnPageHandlerExecuting( + Diagnostics.BeforePageFilterOnPageHandlerExecutingEventData.EventName, + new BeforePageFilterOnPageHandlerExecutingEventData( handlerExecutingContext.ActionDescriptor, handlerExecutingContext, filter @@ -191,11 +191,11 @@ public static void AfterOnPageHandlerExecuting( private static void AfterOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnPageHandlerExecuting.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterPageFilterOnPageHandlerExecutingEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnPageHandlerExecuting.EventName, - new AfterOnPageHandlerExecuting( + Diagnostics.AfterPageFilterOnPageHandlerExecutingEventData.EventName, + new AfterPageFilterOnPageHandlerExecutingEventData( handlerExecutingContext.ActionDescriptor, handlerExecutingContext, filter @@ -221,11 +221,11 @@ public static void BeforeOnPageHandlerExecuted( private static void BeforeOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnPageHandlerExecuted.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforePageFilterOnPageHandlerExecutedEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnPageHandlerExecuted.EventName, - new BeforeOnPageHandlerExecuted( + Diagnostics.BeforePageFilterOnPageHandlerExecutedEventData.EventName, + new BeforePageFilterOnPageHandlerExecutedEventData( handlerExecutedContext.ActionDescriptor, handlerExecutedContext, filter @@ -251,11 +251,11 @@ public static void AfterOnPageHandlerExecuted( private static void AfterOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnPageHandlerExecuted.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterPageFilterOnPageHandlerExecutedEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnPageHandlerExecuted.EventName, - new AfterOnPageHandlerExecuted( + Diagnostics.AfterPageFilterOnPageHandlerExecutedEventData.EventName, + new AfterPageFilterOnPageHandlerExecutedEventData( handlerExecutedContext.ActionDescriptor, handlerExecutedContext, filter @@ -281,11 +281,11 @@ public static void BeforeOnPageHandlerSelection( private static void BeforeOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnPageHandlerSelection.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforePageFilterOnPageHandlerSelectionEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnPageHandlerSelection.EventName, - new BeforeOnPageHandlerSelection( + Diagnostics.BeforePageFilterOnPageHandlerSelectionEventData.EventName, + new BeforePageFilterOnPageHandlerSelectionEventData( handlerSelectedContext.ActionDescriptor, handlerSelectedContext, filter @@ -311,11 +311,11 @@ public static void AfterOnPageHandlerSelection( private static void AfterOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnPageHandlerSelection.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterPageFilterOnPageHandlerSelectionEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnPageHandlerSelection.EventName, - new AfterOnPageHandlerSelection( + Diagnostics.AfterPageFilterOnPageHandlerSelectionEventData.EventName, + new AfterPageFilterOnPageHandlerSelectionEventData( handlerSelectedContext.ActionDescriptor, handlerSelectedContext, filter @@ -341,11 +341,11 @@ public static void BeforeOnPageHandlerSelected( private static void BeforeOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeOnPageHandlerSelected.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforePageFilterOnPageHandlerSelectedEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeOnPageHandlerSelected.EventName, - new BeforeOnPageHandlerSelected( + Diagnostics.BeforePageFilterOnPageHandlerSelectedEventData.EventName, + new BeforePageFilterOnPageHandlerSelectedEventData( handlerSelectedContext.ActionDescriptor, handlerSelectedContext, filter @@ -371,11 +371,11 @@ public static void AfterOnPageHandlerSelected( private static void AfterOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterOnPageHandlerSelected.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterPageFilterOnPageHandlerSelectedEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterOnPageHandlerSelected.EventName, - new AfterOnPageHandlerSelected( + Diagnostics.AfterPageFilterOnPageHandlerSelectedEventData.EventName, + new AfterPageFilterOnPageHandlerSelectedEventData( handlerSelectedContext.ActionDescriptor, handlerSelectedContext, filter diff --git a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.netcoreapp3.0.cs b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.netcoreapp3.0.cs index 945609c56031..bb8a7117669f 100644 --- a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.netcoreapp3.0.cs +++ b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.netcoreapp3.0.cs @@ -215,19 +215,10 @@ public ViewResult() { } } namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed partial class AfterView : Microsoft.AspNetCore.Mvc.Diagnostics.EventData - { - public const string EventName = "Microsoft.AspNetCore.Mvc.AfterView"; - public AfterView(Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) { } - protected override int Count { get { throw null; } } - protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } - public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } - } - public sealed partial class AfterViewComponent : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterViewComponentEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.AfterViewComponent"; - public AfterViewComponent(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.IViewComponentResult viewComponentResult, object viewComponent) { } + public AfterViewComponentEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.IViewComponentResult viewComponentResult, object viewComponent) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } @@ -235,49 +226,58 @@ public AfterViewComponent(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.IViewComponentResult ViewComponentResult { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeView : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class AfterViewEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeView"; - public BeforeView(Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) { } + public const string EventName = "Microsoft.AspNetCore.Mvc.AfterView"; + public AfterViewEventData(Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) { } protected override int Count { get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class BeforeViewComponent : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeViewComponentEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeViewComponent"; - public BeforeViewComponent(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, object viewComponent) { } + public BeforeViewComponentEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, object viewComponent) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public object ViewComponent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class ViewComponentAfterViewExecute : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class BeforeViewEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + { + public const string EventName = "Microsoft.AspNetCore.Mvc.BeforeView"; + public BeforeViewEventData(Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) { } + protected override int Count { get { throw null; } } + protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } + public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + } + public sealed partial class ViewComponentAfterViewExecuteEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.ViewComponentAfterViewExecute"; - public ViewComponentAfterViewExecute(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) { } + public ViewComponentAfterViewExecuteEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class ViewComponentBeforeViewExecute : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class ViewComponentBeforeViewExecuteEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.ViewComponentBeforeViewExecute"; - public ViewComponentBeforeViewExecute(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) { } + public ViewComponentBeforeViewExecuteEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) { } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } protected override System.Collections.Generic.KeyValuePair this[int index] { get { throw null; } } public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class ViewFound : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class ViewFoundEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.ViewFound"; - public ViewFound(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) { } + public ViewFoundEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) { } public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public bool IsMainPage { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } @@ -286,10 +286,10 @@ public ViewFound(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMa public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public string ViewName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } - public sealed partial class ViewNotFound : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed partial class ViewNotFoundEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { public const string EventName = "Microsoft.AspNetCore.Mvc.ViewNotFound"; - public ViewNotFound(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, System.Collections.Generic.IEnumerable searchedLocations) { } + public ViewNotFoundEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, System.Collections.Generic.IEnumerable searchedLocations) { } public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } protected override int Count { get { throw null; } } public bool IsMainPage { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } diff --git a/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs index 4cccd159b37b..c03414d752fc 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs @@ -10,11 +10,11 @@ namespace Microsoft.AspNetCore.Mvc.Diagnostics { - public sealed class BeforeViewComponent : EventData + public sealed class BeforeViewComponentEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeViewComponent); + public const string EventName = EventNamespace + "BeforeViewComponent"; - public BeforeViewComponent(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, object viewComponent) + public BeforeViewComponentEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, object viewComponent) { ActionDescriptor = actionDescriptor; ViewComponentContext = viewComponentContext; @@ -36,11 +36,11 @@ public BeforeViewComponent(ActionDescriptor actionDescriptor, ViewComponentConte }; } - public sealed class AfterViewComponent : EventData + public sealed class AfterViewComponentEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterViewComponent); + public const string EventName = EventNamespace + "AfterViewComponent"; - public AfterViewComponent(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IViewComponentResult viewComponentResult, object viewComponent) + public AfterViewComponentEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IViewComponentResult viewComponentResult, object viewComponent) { ActionDescriptor = actionDescriptor; ViewComponentContext = viewComponentContext; @@ -65,11 +65,11 @@ public AfterViewComponent(ActionDescriptor actionDescriptor, ViewComponentContex }; } - public sealed class ViewComponentBeforeViewExecute : EventData + public sealed class ViewComponentBeforeViewExecuteEventData : EventData { - public const string EventName = EventNamespace + nameof(ViewComponentBeforeViewExecute); + public const string EventName = EventNamespace + "ViewComponentBeforeViewExecute"; - public ViewComponentBeforeViewExecute(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) + public ViewComponentBeforeViewExecuteEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) { ActionDescriptor = actionDescriptor; ViewComponentContext = viewComponentContext; @@ -90,11 +90,11 @@ public ViewComponentBeforeViewExecute(ActionDescriptor actionDescriptor, ViewCom }; } - public sealed class ViewComponentAfterViewExecute : EventData + public sealed class ViewComponentAfterViewExecuteEventData : EventData { - public const string EventName = EventNamespace + nameof(ViewComponentAfterViewExecute); + public const string EventName = EventNamespace + "ViewComponentAfterViewExecute"; - public ViewComponentAfterViewExecute(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) + public ViewComponentAfterViewExecuteEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) { ActionDescriptor = actionDescriptor; ViewComponentContext = viewComponentContext; @@ -116,11 +116,11 @@ public ViewComponentAfterViewExecute(ActionDescriptor actionDescriptor, ViewComp }; } - public sealed class BeforeView : EventData + public sealed class BeforeViewEventData : EventData { - public const string EventName = EventNamespace + nameof(BeforeView); + public const string EventName = EventNamespace + "BeforeView"; - public BeforeView(IView view, ViewContext viewContext) + public BeforeViewEventData(IView view, ViewContext viewContext) { View = view; ViewContext = viewContext; @@ -139,11 +139,11 @@ public BeforeView(IView view, ViewContext viewContext) }; } - public sealed class AfterView : EventData + public sealed class AfterViewEventData : EventData { - public const string EventName = EventNamespace + nameof(AfterView); + public const string EventName = EventNamespace + "AfterView"; - public AfterView(IView view, ViewContext viewContext) + public AfterViewEventData(IView view, ViewContext viewContext) { View = view; ViewContext = viewContext; @@ -162,11 +162,11 @@ public AfterView(IView view, ViewContext viewContext) }; } - public sealed class ViewFound : EventData + public sealed class ViewFoundEventData : EventData { - public const string EventName = EventNamespace + nameof(ViewFound); + public const string EventName = EventNamespace + "ViewFound"; - public ViewFound(ActionContext actionContext, bool isMainPage, ActionResult result, string viewName, IView view) + public ViewFoundEventData(ActionContext actionContext, bool isMainPage, ActionResult result, string viewName, IView view) { ActionContext = actionContext; IsMainPage = isMainPage; @@ -194,11 +194,11 @@ public ViewFound(ActionContext actionContext, bool isMainPage, ActionResult resu }; } - public sealed class ViewNotFound : EventData + public sealed class ViewNotFoundEventData : EventData { - public const string EventName = EventNamespace + nameof(ViewNotFound); + public const string EventName = EventNamespace + "ViewNotFound"; - public ViewNotFound(ActionContext actionContext, bool isMainPage, ActionResult result, string viewName, IEnumerable searchedLocations) + public ViewNotFoundEventData(ActionContext actionContext, bool isMainPage, ActionResult result, string viewName, IEnumerable searchedLocations) { ActionContext = actionContext; IsMainPage = isMainPage; diff --git a/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs index efd7cc8c6c7d..bebdaf0ae6f5 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs @@ -26,11 +26,11 @@ public static void BeforeViewComponent( private static void BeforeViewComponentImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, object viewComponent) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeViewComponent.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeViewComponentEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeViewComponent.EventName, - new BeforeViewComponent( + Diagnostics.BeforeViewComponentEventData.EventName, + new BeforeViewComponentEventData( context.ViewContext.ActionDescriptor, context, viewComponent @@ -53,11 +53,11 @@ public static void AfterViewComponent( private static void AfterViewComponentImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IViewComponentResult result, object viewComponent) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterViewComponent.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterViewComponentEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterViewComponent.EventName, - new AfterViewComponent( + Diagnostics.AfterViewComponentEventData.EventName, + new AfterViewComponentEventData( context.ViewContext.ActionDescriptor, context, result, @@ -80,11 +80,11 @@ public static void ViewComponentBeforeViewExecute( private static void ViewComponentBeforeViewExecuteImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IView view) { - if (diagnosticListener.IsEnabled(Diagnostics.ViewComponentBeforeViewExecute.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.ViewComponentBeforeViewExecuteEventData.EventName)) { diagnosticListener.Write( - Diagnostics.ViewComponentBeforeViewExecute.EventName, - new ViewComponentBeforeViewExecute( + Diagnostics.ViewComponentBeforeViewExecuteEventData.EventName, + new ViewComponentBeforeViewExecuteEventData( context.ViewContext.ActionDescriptor, context, view @@ -106,11 +106,11 @@ public static void ViewComponentAfterViewExecute( private static void ViewComponentAfterViewExecuteImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IView view) { - if (diagnosticListener.IsEnabled(Diagnostics.ViewComponentAfterViewExecute.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.ViewComponentAfterViewExecuteEventData.EventName)) { diagnosticListener.Write( - Diagnostics.ViewComponentAfterViewExecute.EventName, - new ViewComponentAfterViewExecute( + Diagnostics.ViewComponentAfterViewExecuteEventData.EventName, + new ViewComponentAfterViewExecuteEventData( context.ViewContext.ActionDescriptor, context, view @@ -132,11 +132,11 @@ public static void BeforeView( private static void BeforeViewImpl(DiagnosticListener diagnosticListener, IView view, ViewContext viewContext) { - if (diagnosticListener.IsEnabled(Diagnostics.BeforeView.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.BeforeViewEventData.EventName)) { diagnosticListener.Write( - Diagnostics.BeforeView.EventName, - new BeforeView(view, viewContext)); + Diagnostics.BeforeViewEventData.EventName, + new BeforeViewEventData(view, viewContext)); } } @@ -154,11 +154,11 @@ public static void AfterView( private static void AfterViewImpl(DiagnosticListener diagnosticListener, IView view, ViewContext viewContext) { - if (diagnosticListener.IsEnabled(Diagnostics.AfterView.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.AfterViewEventData.EventName)) { diagnosticListener.Write( - Diagnostics.AfterView.EventName, - new AfterView(view, viewContext)); + Diagnostics.AfterViewEventData.EventName, + new AfterViewEventData(view, viewContext)); } } @@ -179,11 +179,11 @@ public static void ViewFound( private static void ViewFoundImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, bool isMainPage, ActionResult viewResult, string viewName, IView view) { - if (diagnosticListener.IsEnabled(Diagnostics.ViewFound.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.ViewFoundEventData.EventName)) { diagnosticListener.Write( - Diagnostics.ViewFound.EventName, - new ViewFound( + Diagnostics.ViewFoundEventData.EventName, + new ViewFoundEventData( actionContext, isMainPage, viewResult, @@ -210,11 +210,11 @@ public static void ViewNotFound( private static void ViewNotFoundImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, bool isMainPage, ActionResult viewResult, string viewName, IEnumerable searchedLocations) { - if (diagnosticListener.IsEnabled(Diagnostics.ViewNotFound.EventName)) + if (diagnosticListener.IsEnabled(Diagnostics.ViewNotFoundEventData.EventName)) { diagnosticListener.Write( - Diagnostics.ViewNotFound.EventName, - new ViewNotFound( + Diagnostics.ViewNotFoundEventData.EventName, + new ViewNotFoundEventData( actionContext, isMainPage, viewResult,