Files
speckle-sharp-connectors/DUI3/Speckle.Connectors.DUI.WebView/ContainerRegistration.cs
T
Jedd Morgan f4d77bf8ce Top Level Exception Handler and Bindings fix (#76)
* TopLeveExceptionHandlerBindings

* Fixed idle manager on exceptional path

* null bindings check

* Made TopLevelExceptionHandler injectable

* Revit now works

* Fixed Tests

* returned unintentional change
2024-07-27 12:40:21 +01:00

15 lines
474 B
C#

using Speckle.Autofac.DependencyInjection;
using Speckle.Connectors.DUI.Bridge;
namespace Speckle.Connectors.DUI.WebView;
public static class ContainerRegistration
{
public static void AddDUIView(this SpeckleContainerBuilder speckleContainerBuilder)
{
// send operation and dependencies
speckleContainerBuilder.AddSingleton<DUI3ControlWebView>();
speckleContainerBuilder.AddSingleton<IBrowserScriptExecutor>(c => c.Resolve<DUI3ControlWebView>());
}
}