Skip to content

Add missing fluent behaviour to PublishingExpression#1854

Closed
elexisvenator wants to merge 1 commit intoJasperFx:mainfrom
elexisvenator:messages-implementing-fix
Closed

Add missing fluent behaviour to PublishingExpression#1854
elexisvenator wants to merge 1 commit intoJasperFx:mainfrom
elexisvenator:messages-implementing-fix

Conversation

@elexisvenator
Copy link
Copy Markdown
Contributor

@elexisvenator elexisvenator commented Nov 19, 2025

Pretty simple, allows for declaring publishers as such:

opts.Publish()
    .MessagesImplementing<IMarker>()
    .ToPubsub();

Pretty simple, allows for declaring publishers as such:

```
opts.Publish()
    .MessagesImplementing<IMarker>()
    .ToPubsub();
```
jeremydmiller added a commit that referenced this pull request Apr 13, 2026
…er for fluent chaining

Based on PR #1854 by @elexisvenator. Makes MessagesImplementing<T>() and
AddSubscriber() return PublishingExpression to enable fluent method chaining.
Added documentation example for the fluent usage pattern.

Co-Authored-By: Ben Edwards <elexisvenator@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeremydmiller
Copy link
Copy Markdown
Member

Applied this change directly to main with credit — thank you @elexisvenator! Also added a fluent-style documentation example.

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.

2 participants