a1f392a33b
* wip * feat: data extraction from db * Fallback conversions * Fix line segments * Fix: do not skip empty values * Remove claude generated receive boilerplates and civil related extractor * Fix compile errors and custom assembly resolver * Guids for bundle * Nuget * Use TagValue as object name * add plant3d to slnx (#1347) * add plant3d to slnx * format * and the local (#1348) * Resolve comments * final comments * lockfiles * don't swallow image exception --------- Co-authored-by: oguzhankoral <oguzhankoral@gmail.com> Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com> Co-authored-by: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com>
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using System.Reflection;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Speckle.Connectors.Autocad.DependencyInjection;
|
|
using Speckle.Connectors.Autocad.Operations.Send;
|
|
using Speckle.Connectors.Common.Builders;
|
|
using Speckle.Connectors.DUI.Bindings;
|
|
using Speckle.Connectors.Plant3dShared.Bindings;
|
|
using Speckle.Connectors.Plant3dShared.Operations.Send;
|
|
using Speckle.Sdk;
|
|
|
|
namespace Speckle.Connectors.Plant3dShared.DependencyInjection;
|
|
|
|
public static class Plant3dConnectorModule
|
|
{
|
|
public static void AddPlant3d(this IServiceCollection serviceCollection)
|
|
{
|
|
serviceCollection.AddAutocadBase();
|
|
|
|
// add send
|
|
serviceCollection.LoadSend();
|
|
serviceCollection.AddScoped<IRootObjectBuilder<AutocadRootObject>, Plant3dRootObjectBuilder>();
|
|
serviceCollection.AddSingleton<IBinding, Plant3dSendBinding>();
|
|
|
|
// automatically detects the Class:IClass interface pattern to register all generated interfaces
|
|
serviceCollection.AddMatchingInterfacesAsTransient(Assembly.GetExecutingAssembly());
|
|
}
|
|
}
|