Files
speckle-sharp-connectors/DUI3/Speckle.Connectors.DUI/Bindings/IBinding.cs
T
Adam Hathcock 3227d09958 Simplify DI/assembly structure part deux (#270)
* Rename utils to common

* fix namespaces

* Rhino kind of works

* Fix converter registration

* Fixed circular referece with lazy resolving

* Fixed Rhino8

* Revit 2022 builds

* revit 2023 compiles

* working on revit

* use speckle app for info instead of statics

* lazy init bindings

* Rhino compiles

* Revit compiles

* Autocad 2022 builds

* Autocad/Civil builds

* ArcGIS compiles

* Remove Autofac completely

* format

* React to SDK renames

* fixes for merge

* Update nuget and official sln

* Remove extra projects

* AutoActivate IBrowserBridge and rename it

* add extra null check

* Merge fixes

* Fix convertermanager problem and add tests

* Add new test project to local sln

* Use recursion

* formatting

* resolve circular dep with lazy get
2024-09-24 16:15:01 +03:00

24 lines
915 B
C#

using Speckle.Connectors.DUI.Bridge;
namespace Speckle.Connectors.DUI.Bindings;
/// <summary>
/// Describes the most basic binding.
/// </summary>
public interface IBinding
{
/// <summary>
/// This will be the name under which it will be available in the Frontend, e.g.
/// window.superBinding, or window.mapperBinding. Please use camelCase even if
/// it hurts.
/// </summary>
public string Name { get; }
/// <summary>
/// Bindings will be wrapped by a browser specific bridge, and they will need
/// to use that bridge to send events to the Frontend, via <see cref="IBrowserBridge.Send">SendToBrowser(IHostAppEvent)</see>.
/// TODO: we'll probably need a factory class of sorts to handle the proper wrapping. Currently, on bridge instantiation the parent is set in the bindings class that has been wrapped around. Not vvv elegant.
/// </summary>
public IBrowserBridge Parent { get; }
}