Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Event aggregator #417

Merged
merged 86 commits into from
Jan 21, 2025
Merged

Introduce Event aggregator #417

merged 86 commits into from
Jan 21, 2025

Conversation

adamhathcock
Copy link
Member

@adamhathcock adamhathcock commented Nov 28, 2024

https://www.notion.so/speckle/Event-Aggregation-174b78fc7aa6806a86e7f451fa7c4b96

Decouples exception handler from browser bridge.
IdleManager is now a OneTime event with IDs.
Rhino is converted.
Global Events (Doc changed) are converted.

More events to come!

Base automatically changed from remove-dataflow to dev December 20, 2024 14:12
@adamhathcock adamhathcock marked this pull request as ready for review January 9, 2025 15:33
@adamhathcock adamhathcock marked this pull request as draft January 17, 2025 12:54
@adamhathcock adamhathcock marked this pull request as ready for review January 17, 2025 15:46
Copy link
Member

@JR-Morgan JR-Morgan left a comment

Choose a reason for hiding this comment

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

Changes requested on #505

@@ -1,49 +1,46 @@
using Speckle.Connectors.DUI.Bindings;
using Speckle.Connectors.DUI.Bridge;
using Speckle.Connectors.DUI.Eventing;
using Speckle.Connectors.RhinoShared;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we importing from RhinoShared in Tekla?

Copy link
Member Author

Choose a reason for hiding this comment

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

The events were declared in the wrong namespace but fixed in another PR: b5871d5

@adamhathcock
Copy link
Member Author

Probably done at the same time: #505

adamhathcock and others added 2 commits January 21, 2025 14:12
* Support async publish but async or sync subscribe

* Publish with tests

* more sub overloads

* added onetime tests that fail

* Reorganized events to have async and sync

* adjust subscriptions

* Rhino fixes

* use async eventing everywhere and add docstore init method

* clean up

* add handlers for unobserved task exceptions

* fix usage of exception handler to include one time users

* fix(civil3d): handles property exceptions for corridor elements (#508)

* Update GeneralPropertiesExtractor.cs

* Update GeneralPropertiesExtractor.cs

* Update CorridorDisplayValueExtractor.cs

* Fix weak references

* Fix TeklaEvents namespace

* Anonymous methods are always created as strong references

* refactor to have features

---------

Co-authored-by: Claire Kuang <[email protected]>
@adamhathcock adamhathcock merged commit 83efebf into dev Jan 21, 2025
3 checks passed
@adamhathcock adamhathcock deleted the event-aggregator branch January 21, 2025 14:20
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.

3 participants