Repository navigation
Normalize event/callback naming conventions (#260) - #301
Merged
Chris Anderson (codemonkeychris) merged 3 commits intoMay 19, 2026
Merged
Conversation
Rename bare-name AccessKeyDisplayRequested extension to OnAccessKeyDisplayRequested with [Obsolete] shim. Change NavigationDiagnostics events from Action<T> to EventHandler<T> to follow .NET event guidelines. Update reactor.api.txt and test handlers. Fixes #260 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sundaram Ramaswamy (sundaramramaswamy)
requested a review
from Chris Anderson (codemonkeychris)
as a code owner
May 15, 2026 08:24
Update handler signatures from Action<T> to EventHandler<T> (object? sender, T e) pattern in NavigationDemo diagnostics and selftest NavigationCoverageFixtures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update diagnostic event handlers from Action<T> to EventHandler<T> to match the changed event signatures in NavigationDiagnostics. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Chris Anderson (codemonkeychris)
deleted the
fix/260-event-callback-naming
branch
May 19, 2026 15:44
This was referenced Dec 3, 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
Two changes to normalize event/callback naming conventions:
Part A: DSL callback prefix
Renamed
AccessKeyDisplayRequestedextension methods toOnAccessKeyDisplayRequestedto match theOnXconvention used by all other DSL callbacks. Old names kept as[Obsolete]shims forwarding to the new methods.Part B: NavigationDiagnostics event types
Changed all 9
NavigationDiagnosticsevents fromAction<T>toEventHandler<T>to follow .NET event guidelines. The event-args classes (NavigationDiagnosticEvent,CacheDiagnosticEvent,TransitionDiagnosticEvent,DeepLinkDiagnosticEvent) are unchanged — only the delegate shape changes.Changed files
ElementExtensions.csOnAccessKeyDisplayRequested+[Obsolete]shimNavigationDiagnostics.csAction<T>→EventHandler<T>NavigationDiagnosticsCoverageTests.csreactor.api.txt(×2)OnAccessKeyDisplayRequestedentriesFixes #260