Skip to content

Commit

Permalink
fix(dui3): corrects IRootObjectBuilder registration (#3505)
Browse files Browse the repository at this point in the history
  • Loading branch information
didimitrie authored Jun 13, 2024
1 parent ccf143e commit 6b767fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void Load(SpeckleContainerBuilder builder)
// register send operation and dependencies
builder.AddScoped<SendOperation<MapMember>>();
builder.AddScoped<ArcGISRootObjectBuilder>();
builder.AddSingleton<IRootObjectBuilder<MapMember>, ArcGISRootObjectBuilder>();
builder.AddScoped<IRootObjectBuilder<MapMember>, ArcGISRootObjectBuilder>();

// register send conversion cache
builder.AddSingleton<ISendConversionCache, SendConversionCache>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void Load(SpeckleContainerBuilder builder)

// Object Builders
builder.AddScoped<IHostObjectBuilder, AutocadHostObjectBuilder>();
builder.AddSingleton<IRootObjectBuilder<AutocadRootObject>, AutocadRootObjectBuilder>();
builder.AddScoped<IRootObjectBuilder<AutocadRootObject>, AutocadRootObjectBuilder>();

// Register bindings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ public void Load(SpeckleContainerBuilder builder)
builder.AddScoped<SendOperation<RhinoObject>>();
builder.AddSingleton(DefaultTraversal.CreateTraversalFunc());

builder.AddSingleton<IRootObjectBuilder<RhinoObject>, RhinoRootObjectBuilder>();
builder.AddScoped<IRootObjectBuilder<RhinoObject>, RhinoRootObjectBuilder>();
}
}

0 comments on commit 6b767fe

Please sign in to comment.