Skip to content

LT-22568: Part 1 - Scope Pub/Sub to a Main Window#957

Open
mark-sil wants to merge 1 commit into
mainfrom
LT-22568
Open

LT-22568: Part 1 - Scope Pub/Sub to a Main Window#957
mark-sil wants to merge 1 commit into
mainfrom
LT-22568

Conversation

@mark-sil

@mark-sil mark-sil commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The Pub/Sub framework was allowing Subscribers to receive messages from all Publishers. In most cases we want this to be scoped to only include Subscribers with the same Main Window (IxWindow) as the Publisher. Now both the Publish() and Subscribe() methods take a IPubSubScope object as a Parameter (IxWindow is not available in the Pub/Sub dll).
Note: We use the interface to prevent accidentally passing a dialog instead of the main window (ex. passing Form.ActiveForm inside a modal).


This change is Reviewable

The Pub/Sub framework was allowing Subscribers to receive messages from
all Publishers.  In most cases we want this to be scoped to only include
Subscribers with the same Main Window (IxWindow) as the Publisher. Now both
the Publish() and Subscribe() methods take a IPubSubScope object as a
Parameter (IxWindow is not available in the Pub/Sub dll).
Note: We use the interface to prevent accidentally passing a dialog
instead of the main window (ex. passing Form.ActiveForm inside
a modal).
@github-actions

Copy link
Copy Markdown

NUnit Tests

    1 files  ±0      1 suites  ±0   10m 34s ⏱️ -10s
4 256 tests +5  4 183 ✅ +5  73 💤 ±0  0 ❌ ±0 
4 265 runs  +5  4 192 ✅ +5  73 💤 ±0  0 ❌ ±0 

Results for commit 205c203. ± Comparison against base commit 08fe66d.

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