Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BeforeRouting and AfterRouting EventHandlers to Router #112

Closed
scottoffen opened this issue Aug 29, 2016 · 1 comment
Closed

Add BeforeRouting and AfterRouting EventHandlers to Router #112

scottoffen opened this issue Aug 29, 2016 · 1 comment
Assignees
Milestone

Comments

@scottoffen
Copy link
Owner

scottoffen commented Aug 29, 2016

Desired Result

public delegate RoutingEventHandler(IHttpContext context);

RoutingEventHandler handler = ctx => { /* do something */ };

router.BeforeRouting += handler;
router.AfterRouting += handler;
  • BeforeRouting event is fired prior to any routes being invoked
  • BeforeRouting delegates are invoked in the order they are added
  • AfterRouting event is fired after all routes have been invoked
  • AfterRouting delegates are invoked in the reverse order they are added
  • exceptions throw by delegates will be re-thrown in an AggregateException
@scottoffen scottoffen self-assigned this Aug 29, 2016
@scottoffen scottoffen modified the milestones: 4.0.0.next, 4.0.0.stage, Backlog Sep 12, 2016
@scottoffen scottoffen modified the milestones: Backlog, 4.0.0.x Nov 4, 2016
@scottoffen scottoffen changed the title Change router before and after delegates to be Events Change Before and After delegates on Router to use Events Nov 18, 2016
scottoffen pushed a commit that referenced this issue Nov 18, 2016
@scottoffen scottoffen changed the title Change Before and After delegates on Router to use Events Add BeforeRouting and AfterRouting Event Handlers to Router Nov 19, 2016
@scottoffen scottoffen changed the title Add BeforeRouting and AfterRouting Event Handlers to Router Add BeforeRouting and AfterRouting EventHandlers to Router Nov 19, 2016
@scottoffen
Copy link
Owner Author

Forgot that last bullet point...

@scottoffen scottoffen reopened this Nov 19, 2016
scottoffen pushed a commit that referenced this issue Nov 19, 2016
scottoffen pushed a commit that referenced this issue Nov 19, 2016
scottoffen pushed a commit that referenced this issue Nov 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant