Bring arguments inline between before/after events
This commit is contained in:
parent
32c174c791
commit
a0764faa86
|
|
@ -625,7 +625,12 @@ namespace Microsoft.AspNet.Mvc.Controllers
|
|||
{
|
||||
_telemetry.WriteTelemetry(
|
||||
"Microsoft.AspNet.Mvc.BeforeActionMethod",
|
||||
new { actionContext = ActionContext, arguments = _actionExecutingContext.ActionArguments });
|
||||
new
|
||||
{
|
||||
actionContext = ActionContext,
|
||||
arguments = _actionExecutingContext.ActionArguments,
|
||||
controller = _actionExecutingContext.Controller
|
||||
});
|
||||
}
|
||||
|
||||
result = await InvokeActionAsync(_actionExecutingContext);
|
||||
|
|
@ -636,7 +641,13 @@ namespace Microsoft.AspNet.Mvc.Controllers
|
|||
{
|
||||
_telemetry.WriteTelemetry(
|
||||
"Microsoft.AspNet.Mvc.AfterActionMethod",
|
||||
new { actionContext = ActionContext, result = result });
|
||||
new
|
||||
{
|
||||
actionContext = ActionContext,
|
||||
arguments = _actionExecutingContext.ActionArguments,
|
||||
controller = _actionExecutingContext.Controller,
|
||||
result = result
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ namespace Microsoft.AspNet.Mvc.Infrastructure
|
|||
{
|
||||
_telemetry.WriteTelemetry(
|
||||
"Microsoft.AspNet.Mvc.AfterAction",
|
||||
new { actionDescriptor, httpContext = context.HttpContext });
|
||||
new { actionDescriptor, httpContext = context.HttpContext, routeData = context.RouteData });
|
||||
}
|
||||
|
||||
if (!context.IsHandled)
|
||||
|
|
|
|||
Loading…
Reference in New Issue