Added a WrapNonBHoMObjects() method. Wraps non-BHoMObjects into Custom BHoM Objects so they can make use of the Adapter Replace/Crud methods as the BHoMObjects (they get an ID, CustomData, etc).
Added AdapterConfig.WrapNonBHoMObjects that defines default Toolkit behaviour for that method. Defaults to false, as it should be used only in few specific Toolkits.
Added a push config boolean option that overrides the default AdapterConfig setting if specified, so the user has control over the specific Push case.
Issues addressed by this PR
Closes #140 Also adds some comments and a few renamings for clarity.
Test script
https://burohappold.sharepoint.com/:u:/s/BHoM/ERekpoPskXFOuC66VS7yG74BFNT5HaGuqKBFTcOj_qRvfw?e=qCF92Q
Changelog
WrapNonBHoMObjects()
method. Wraps non-BHoMObjects into Custom BHoM Objects so they can make use of the Adapter Replace/Crud methods as the BHoMObjects (they get an ID, CustomData, etc).AdapterConfig.WrapNonBHoMObjects
that defines default Toolkit behaviour for that method. Defaults to false, as it should be used only in few specific Toolkits.config
boolean option that overrides the defaultAdapterConfig
setting if specified, so the user has control over the specific Push case.