Robot_Toolkit: Add CRUD operation/session object collection
- Dominant language
- C#
- Stars
- 12
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
#### Description:
Through discussion with @IsakNaslundBh , would be good to add a `Dictionary> SessionObjects` or similar to the RobotAdapter. The session objects would store objects as part of a CRUD method - currently read methods are peppered around different objects where there are dependencies (e.g. read materials), so there are multiple reads called during an operation. The SessionObjects would store these _per adapter action_ and be flushed each time. This could be something we raise up to the parent adapter as a concept, and enforce flushing etc.
I've seen this done quite a bit informally in the past - Revit TK at one point (maybe still?) was storing objects during operations on the adapter and passing them around.
Naturally we need to be quite careful with the session objects when passing them around/making sure the collection is being updated.
Contributor guide
Assessment
This issue has not been assessed yet.