Add migration tutorials for Minimal API, MVC, and middleware filters#2422
Merged
jeremydmiller merged 3 commits intomainfrom Apr 3, 2026
Merged
Add migration tutorials for Minimal API, MVC, and middleware filters#2422jeremydmiller merged 3 commits intomainfrom
jeremydmiller merged 3 commits intomainfrom
Conversation
…helpers New tutorial mapping MVC filters and Minimal API endpoint filters to Wolverine.HTTP middleware equivalents, with side-by-side code examples for Before/After/Finally methods, short-circuiting, data loading, and per-endpoint middleware application. Add AddMiddleware<T>() and AddPostprocessor<T>() extension methods on IChain as syntactic sugar over manually constructing MethodCall frames and adding them to chain.Middleware/Postprocessors collections. Closes #2409 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Two new tutorials with side-by-side before/after code examples: - from-minimal-api.md: Maps Minimal API patterns to Wolverine.HTTP equivalents covering endpoints, parameter binding, auth, route groups, endpoint filters, cascading messages, and MapPostToWolverine shortcuts - from-mvc.md: Maps MVC controller patterns to Wolverine.HTTP including CRUD controllers, constructor vs method injection, ActionResult vs return types, ModelState vs Validate methods, and controller filters Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2409
docs/tutorials/middleware-migration.md): Maps MVCIActionFilter,IEndpointFilter,IAuthorizationFilter,IResourceFilter,IResultFilter, andIExceptionFilterto Wolverine Before/After/Finally middleware conventions. Covers 4 ways to apply middleware (inline,[Middleware],Configure(HttpChain),IHttpPolicy).docs/tutorials/from-minimal-api.md): Side-by-side before/after conversions covering GET/POST endpoints, parameter binding, form/file uploads, auth, route groups →IHttpPolicy, endpoint filters → Before methods, cascading messages,MapPostToWolverineshortcuts, and OpenAPI metadata.docs/tutorials/from-mvc.md): Side-by-side before/after conversions covering CRUD controllers, constructor → method injection,ActionResult<T>→ direct returns, ModelState → Validate/FluentValidation, controller filters →[Middleware], and cascading messages.AddMiddleware<T>()/AddPostprocessor<T>()extension methods onIChainfor cleaner middleware registration inConfigure(HttpChain)methods.Test plan
IChainextension methods compile🤖 Generated with Claude Code