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(); speckleContainerBuilder.AddSingleton(c => c.Resolve()); }*/ public static void AddDUIView(this IServiceCollection serviceCollection) { // send operation and dependencies serviceCollection.AddSingleton(); serviceCollection.AddSingleton(c => c.GetRequiredService()); } }