Skip to content

Minimize the public weak event API - #36

Merged
Seramis merged 1 commit into
mainfrom
minimize-public-api
Nov 23, 2026
Merged

Seramis merged 1 commit into
mainfrom
minimize-public-api

Conversation

@Seramis

@Seramis Seramis commented Nov 23, 2026

Copy link
Copy Markdown
Member

Description

Moves subscriber storage and dispatch implementation behind an internal WeakEventCore.

WeakEvent<TEvent> and WeakEvent no longer expose or inherit WeakEventBase. WeakEventBase, WeakEventCore, and WeakEventHandler are hidden from the public API, leaving only the two weak event types visible to consumers.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Other (please specify):

Checklist

  • The PR is submitted to the correct branch (main).
  • My code follows the project's coding style. (.editorconfig)
  • I have commented my code, particularly in hard-to-understand areas and public interfaces.
  • I have added or updated tests for the changes I made.
  • All new and existing tests passed.
  • I have updated the documentation where applicable.

Additional Notes

This branch intentionally removes WeakEventBase from the public API.

@Seramis Seramis self-assigned this Nov 23, 2026
@Seramis Seramis added the enhancement New feature or request label Nov 23, 2026
@Seramis
Seramis merged commit 5648837 into main Nov 23, 2026
3 checks passed
@Seramis
Seramis deleted the minimize-public-api branch November 23, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant