private static void AddTreeMeshDirector(IDependenciesProvider dependenciesProvider) { var meshDataBuilder = dependenciesProvider.GetFromFactories <IMeshDataBuilder>(typeof(IMeshDataBuilder)); var treeMeshDataDirector = new TreeMeshDataDirector( meshDataBuilder, dependenciesProvider.GetFromSingleton <IHexTubeMeshDataDirector>(typeof(IHexTubeMeshDataDirector)) ); dependenciesProvider.AddTSingleton <ITreeMeshDataDirector>(treeMeshDataDirector); }
public Injector(IDependenciesProvider dependenciesProvider) { _dependenciesProvider = dependenciesProvider; }
private static void AddMeshDataBuilderFactory(IDependenciesProvider dependenciesProvider) { dependenciesProvider.AddTFactory <IMeshDataBuilder>(() => new MeshDataBuilder()); }
private static void ComposeFactories(IDependenciesProvider dependenciesProvider) { AddMeshDataBuilderFactory(dependenciesProvider); }
private static void AddPrimitivesMeshDataDirector(IDependenciesProvider dependenciesProvider) { var meshBuilder = dependenciesProvider.GetFromFactories <IMeshDataBuilder>(typeof(IMeshDataBuilder)); dependenciesProvider.AddTSingleton <IHexTubeMeshDataDirector>(new HexTubeMeshDataDirector(meshBuilder)); }
private static void AddMeshDataSimplifyingService(IDependenciesProvider dependenciesProvider) { var meshSimplifyingService = new MeshDataSimplifyingService(); dependenciesProvider.AddTSingleton <IMeshDataSimplifyingService>(meshSimplifyingService); }
private static void ComposeSingletons(IDependenciesProvider dependenciesProvider) { AddPrimitivesMeshDataDirector(dependenciesProvider); AddTreeMeshDirector(dependenciesProvider); AddMeshDataSimplifyingService(dependenciesProvider); }