Skip to content

refactor(streaming): remove unused implicit subscriber grain factory - #10322

Open
ReubenBond wants to merge 2 commits into
dotnet:mainfrom
ReubenBond:refactor/implicit-stream-subscriber-factory
Open

refactor(streaming): remove unused implicit subscriber grain factory#10322
ReubenBond wants to merge 2 commits into
dotnet:mainfrom
ReubenBond:refactor/implicit-stream-subscriber-factory

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 1, 2026

Copy link
Copy Markdown
Member

Removes the unused internal grain factory parameter from implicit stream subscriber lookup and its callers. The lookup already returns grain IDs directly, so retaining and threading the factory adds unnecessary coupling.

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings August 1, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors Orleans streaming implicit pub-sub to remove an unused IInternalGrainFactory parameter from implicit subscriber lookup and threads that simplification through the pub-sub implementation and both silo/client provider runtimes, reducing unnecessary coupling.

Changes:

  • Removed the unused grain factory parameter from ImplicitStreamSubscriberTable.GetImplicitSubscribers.
  • Updated ImplicitStreamPubSub to no longer store/require an internal grain factory.
  • Updated silo/client streaming provider runtimes to construct ImplicitStreamPubSub with only the subscriber table.
Show a summary per file
File Description
src/Orleans.Streaming/PubSub/ImplicitStreamSubscriberTable.cs Removes the unused factory parameter from implicit subscriber lookup (and should align docs with the returned dictionary).
src/Orleans.Streaming/PubSub/ImplicitStreamPubSub.cs Removes factory dependency and updates call sites to the simplified lookup method.
src/Orleans.Streaming/Providers/SiloStreamProviderRuntime.cs Updates runtime wiring to construct ImplicitStreamPubSub without the internal grain factory.
src/Orleans.Streaming/Providers/ClientStreamingProviderRuntime.cs Updates runtime wiring to construct ImplicitStreamPubSub without the internal grain factory.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 2

Comment thread src/Orleans.Streaming/PubSub/ImplicitStreamPubSub.cs Outdated
Comment thread src/Orleans.Streaming/PubSub/ImplicitStreamSubscriberTable.cs Outdated
Copilot AI review requested due to automatic review settings August 2, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ccadbbac-3066-4b68-aab0-135e7419f4d5
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ccadbbac-3066-4b68-aab0-135e7419f4d5
Copilot AI review requested due to automatic review settings August 5, 2026 13:11
@ReubenBond
ReubenBond force-pushed the refactor/implicit-stream-subscriber-factory branch from d520ca5 to 9afae2a Compare August 5, 2026 13:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new

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