From 6b767fee75b836ce5f6ba3fc9d3dba9220070805 Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Thu, 13 Jun 2024 15:31:47 +0100 Subject: [PATCH] fix(dui3): corrects IRootObjectBuilder registration (#3505) --- .../DependencyInjection/ArcGISConnectorModule.cs | 2 +- .../DependencyInjection/AutocadConnectorModule.cs | 2 +- .../DependencyInjection/RhinoConnectorModule.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/DependencyInjection/ArcGISConnectorModule.cs b/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/DependencyInjection/ArcGISConnectorModule.cs index 1c5c0a8559..c76e79c4ab 100644 --- a/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/DependencyInjection/ArcGISConnectorModule.cs +++ b/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/DependencyInjection/ArcGISConnectorModule.cs @@ -55,7 +55,7 @@ public void Load(SpeckleContainerBuilder builder) // register send operation and dependencies builder.AddScoped>(); builder.AddScoped(); - builder.AddSingleton, ArcGISRootObjectBuilder>(); + builder.AddScoped, ArcGISRootObjectBuilder>(); // register send conversion cache builder.AddSingleton(); diff --git a/DUI3-DX/Connectors/Autocad/Speckle.Connectors.AutocadShared/DependencyInjection/AutocadConnectorModule.cs b/DUI3-DX/Connectors/Autocad/Speckle.Connectors.AutocadShared/DependencyInjection/AutocadConnectorModule.cs index 98733f04d2..f4a970b1d0 100644 --- a/DUI3-DX/Connectors/Autocad/Speckle.Connectors.AutocadShared/DependencyInjection/AutocadConnectorModule.cs +++ b/DUI3-DX/Connectors/Autocad/Speckle.Connectors.AutocadShared/DependencyInjection/AutocadConnectorModule.cs @@ -44,7 +44,7 @@ public void Load(SpeckleContainerBuilder builder) // Object Builders builder.AddScoped(); - builder.AddSingleton, AutocadRootObjectBuilder>(); + builder.AddScoped, AutocadRootObjectBuilder>(); // Register bindings diff --git a/DUI3-DX/Connectors/Rhino/Speckle.Connectors.Rhino7/DependencyInjection/RhinoConnectorModule.cs b/DUI3-DX/Connectors/Rhino/Speckle.Connectors.Rhino7/DependencyInjection/RhinoConnectorModule.cs index 96d6aaa56b..a227755c66 100644 --- a/DUI3-DX/Connectors/Rhino/Speckle.Connectors.Rhino7/DependencyInjection/RhinoConnectorModule.cs +++ b/DUI3-DX/Connectors/Rhino/Speckle.Connectors.Rhino7/DependencyInjection/RhinoConnectorModule.cs @@ -70,6 +70,6 @@ public void Load(SpeckleContainerBuilder builder) builder.AddScoped>(); builder.AddSingleton(DefaultTraversal.CreateTraversalFunc()); - builder.AddSingleton, RhinoRootObjectBuilder>(); + builder.AddScoped, RhinoRootObjectBuilder>(); } }