specklesystems / speckle-sharp

.NET SDK, Schema and Connectors: Revit, Rhino, Grasshopper, Dynamo, ETABS, AutoCAD, Civil3D & more.
https://speckle.systems
Apache License 2.0
379 stars 173 forks source link

Added workspace Id tracking #3637

Closed JR-Morgan closed 1 month ago

JR-Morgan commented 1 month ago

This PR adds workspace_id tracking for Receive and Send events.


I was going to add support for fetching the workspace id to all of the ProjectResource queries, like I've done for the v3 sdk https://github.com/specklesystems/speckle-sharp-sdk/pull/134

But, since its important that the v2 SDK is compatible with older self hosted servers, I thought it would be easiest simply to add a helper function just for this query. This avoids having to add a version check in each of the Project resources (which, at least right now in their current form don't have direct access to the underlying GqlClient.


Needs through testing:

linear[bot] commented 1 month ago

CXPLA-96 Update SDKs to add new Workspaces properties

didimitrie commented 1 month ago

note: didn't test locally, just sanity check glanced at the code!