Skip to content

docs: remove obsolete [HandlerRoute] attribute from ASHX migration guide#481

Merged
csharpfritz merged 1 commit intoFritzAndFriends:devfrom
csharpfritz:fix/handler-docs-remove-handlerroute
Mar 19, 2026
Merged

docs: remove obsolete [HandlerRoute] attribute from ASHX migration guide#481
csharpfritz merged 1 commit intoFritzAndFriends:devfrom
csharpfritz:fix/handler-docs-remove-handlerroute

Conversation

@csharpfritz
Copy link
Collaborator

Summary

The [HandlerRoute] attribute and MapBlazorWebFormsHandlers() were eliminated during the design pivot to Minimal API registration. The actual handler infrastructure uses MapHandler<T>("/path") in Program.cs, but the ASHX migration documentation was never updated to reflect this.

Changes

  • Removed all [HandlerRoute(...)] attribute decorations from handler class examples
  • Replaced MapBlazorWebFormsHandlers() calls with explicit MapHandler<T>("/path") in Program.cs
  • Updated Quick Start checklist step 5 to reference Program.cs registration
  • Added Program.cs registration snippets to all handler examples
  • Updated troubleshooting table and summary section

Verification

  • MkDocs strict build passes
  • Zero remaining references to HandlerRoute or MapBlazorWebFormsHandlers in the doc

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>
@csharpfritz csharpfritz merged commit e21869c into FritzAndFriends:dev Mar 19, 2026
1 check passed
@csharpfritz csharpfritz deleted the fix/handler-docs-remove-handlerroute branch March 19, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant