Skip to content

Feature/IDisposableEventHub#37

Merged
Hissal merged 2 commits into
mainfrom
feature/IDisposableEventHub
Feb 21, 2026
Merged

Feature/IDisposableEventHub#37
Hissal merged 2 commits into
mainfrom
feature/IDisposableEventHub

Conversation

@Hissal
Copy link
Copy Markdown
Owner

@Hissal Hissal commented Feb 21, 2026

This pull request refactors the event hub interfaces to clarify and enforce disposability. The main change is the introduction of new IDisposableEventHub interfaces, which explicitly combine event hub functionality with the IDisposable contract. Implementations of event hubs now inherit from these new interfaces, ensuring that disposability is part of their type definition.

Event hub interface refactoring:

  • Added new IDisposableEventHub and IDisposableEventHub<TMessageRestriction> interfaces to explicitly require disposability for event hub implementations. (DisposableEvents/Hub/Event/EventHub.cs)
  • Updated EventHub and EventHub<TMessageRestriction> classes to implement the new IDisposableEventHub interfaces instead of directly implementing IDisposable. (DisposableEvents/Hub/Event/EventHub.cs) [1] [2]
  • Updated ManualEventHub and ManualEventHub<TMessageRestriction> classes to implement the new IDisposableEventHub interfaces. (DisposableEvents/Hub/Event/ManualEventHub.cs) [1] [2]

@Hissal Hissal changed the title Feature/i disposable event hub Feature/IDisposable event hub Feb 21, 2026
@Hissal Hissal changed the title Feature/IDisposable event hub Feature/IDisposableEventHub Feb 21, 2026
@Hissal Hissal merged commit 3d4234a into main Feb 21, 2026
1 check passed
@Hissal Hissal deleted the feature/IDisposableEventHub branch February 21, 2026 15:56
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