3227d09958
* 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
23 lines
776 B
C#
23 lines
776 B
C#
using Microsoft.Extensions.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>());
|
|
}*/
|
|
|
|
public static void AddDUIView(this IServiceCollection serviceCollection)
|
|
{
|
|
// send operation and dependencies
|
|
serviceCollection.AddSingleton<DUI3ControlWebView>();
|
|
serviceCollection.AddSingleton<IBrowserScriptExecutor>(c => c.GetRequiredService<DUI3ControlWebView>());
|
|
}
|
|
}
|