feat: implement channel adapter#19
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new in-process channel transport adapter (Eventa.Adapters.Channels) and extends the core EventContext/listener infrastructure to support transport-originated envelope dispatch and deterministic “transport fatal” cleanup for pending invokes.
Changes:
- Introduce
Eventa.Adapterspackage withChannelPipe/ChannelEndpointand integration tests. - Add inbound dispatch (
IEventInboundDispatcher.Receive) based on erased envelopes (IEventEnvelope) without re-entering the send path. - Add transport-fatal notification (
IEventTransportFatalNotifier) and invoke-session faulting via a per-context registry.
Reviewed changes
Copilot reviewed 22 out of 23 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Eventa.Tests/xunit.runner.json | Formatting normalization for xUnit runner config. |
| tests/Eventa.Tests/Support/InvokeSessionEngineTests.cs | Adds tests for transport-fatal invoke faulting behavior. |
| tests/Eventa.Tests/EventContextTests.cs | Adds coverage for inbound Receive dispatch and envelope type mismatch errors. |
| tests/Eventa.Adapters.Tests/xunit.runner.json | Adds xUnit runner config for new adapters test project. |
| tests/Eventa.Adapters.Tests/packages.lock.json | Adds lockfile for new adapters test project dependencies. |
| tests/Eventa.Adapters.Tests/Eventa.Adapters.Tests.csproj | Introduces new adapters integration test project. |
| tests/Eventa.Adapters.Tests/Channels/ChannelPipeTests.cs | End-to-end tests for emit/invoke forwarding and terminal closure semantics. |
| src/Eventa/Support/InvokeSessionEngine.cs | Subscribes invoke sessions to transport-fatal notifications. |
| src/Eventa/Support/InvokeInternalConfig.cs | Adds TransportFatalInvocationRegistry to track active invoke sessions. |
| src/Eventa/Support/EventListenerStore.cs | Refactors listener storage to support erased-envelope snapshots for transport receives. |
| src/Eventa/Primitives/EventEnvelope.cs | Makes EventEnvelope<T> implement IEventEnvelope for type erasure. |
| src/Eventa/EventContext.cs | Implements inbound dispatch + transport-fatal notifier on the core context. |
| src/Eventa/Abstractions/IEventTransportFatalNotifier.cs | New public abstraction for transport terminal failure notification. |
| src/Eventa/Abstractions/IEventInboundDispatcher.cs | New public abstraction for dispatching transport-originated envelopes. |
| src/Eventa/Abstractions/IEventEnvelope.cs | New public abstraction for erased envelopes. |
| src/Eventa.Adapters/Eventa.Adapters.csproj | Adds new adapters library project. |
| src/Eventa.Adapters/Channels/ChannelPipe.cs | Implements paired in-memory channel endpoints. |
| src/Eventa.Adapters/Channels/ChannelOptions.cs | Defines ChannelPipeOptions / ChannelEndpointOptions. |
| src/Eventa.Adapters/Channels/ChannelMessages.cs | Defines channel transport message + closure event payload/exception. |
| src/Eventa.Adapters/Channels/ChannelEndpoint.cs | Implements endpoint lifecycle, inbound pump, and termination behavior. |
| src/Eventa.Adapters/Channels/ChannelAdapter.cs | Adapter that mirrors OnSent to an outbound channel writer. |
| README.md | Documents the channel adapter and adds example/commands updates. |
| Eventa.slnx | Adds new adapters project + test project to the solution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Validation