Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

EventNotification support for MVC #2651

Closed
@rynowak

Description

@rynowak

We want to add support for events via Microsoft.Framework.Notification to various components in MVC that can be consumed in process by diagnostic tools.

To start with we want to include data/events with known tooling experiences built around them. This isn't a complete list, but includes things we can start on.

Routing:

  • Each route should have an event for success/failure
  • Include HttpContext
  • Include information about the route being executed
  • Include RouteData

Action Selection:

  • Event for Actions Matching Route Values (include HttpContext, include RouteData, include ActionDescriptors)
  • Event for Actions Matching Constraints (include HttpContext, include RouteData, include ActionDescriptors)
  • Event for final action selected (include HttpContext, include RouteData)

Action Invoker:

  • Event for before/after a filter (include ActionContext, Filter, data from context Exception, Cancelled, etc)
  • Event for invoking action (include ActionContext, Controller, MethodInfo, Arguments)
  • Example: Logging: Filters #1629 (comment)

Model Binding:

  • Needs design - see: Logging: Model Binding #1566 (comment)
  • Goal here would be to include what data is bound to each model value/property and what data source it came from. This might require enhancing ValueProviderResult

Content-Negotation/ObjectResult:

  • Events for the content type chosen/conneg failed. Include inputs (Accept, Content-Type, Formatters, Model-Type, Result)

View Engine:

Startup:

  • Event for action discovery - include ActionDescriptors

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions