docs: remove obsolete [HandlerRoute] attribute from ASHX migration guide#481
Merged
csharpfritz merged 1 commit intoFritzAndFriends:devfrom Mar 19, 2026
Conversation
The [HandlerRoute] attribute and MapBlazorWebFormsHandlers() were eliminated
during the design pivot to Minimal API registration. The actual API uses
MapHandler<T>("/path") in Program.cs, but the documentation still referenced
the old attribute-based pattern throughout.
Changes:
- Remove all [HandlerRoute(...)] decorations from code examples
- Replace MapBlazorWebFormsHandlers() with explicit MapHandler<T>() calls
- Update Quick Start checklist step 5 to reference Program.cs registration
- Add Program.cs registration snippets to all handler examples
- Update troubleshooting table and summary section
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
The
[HandlerRoute]attribute andMapBlazorWebFormsHandlers()were eliminated during the design pivot to Minimal API registration. The actual handler infrastructure usesMapHandler<T>("/path")inProgram.cs, but the ASHX migration documentation was never updated to reflect this.Changes
[HandlerRoute(...)]attribute decorations from handler class examplesMapBlazorWebFormsHandlers()calls with explicitMapHandler<T>("/path")inProgram.csProgram.csregistrationProgram.csregistration snippets to all handler examplesVerification
HandlerRouteorMapBlazorWebFormsHandlersin the doc