Esempio n. 1
0
        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;
 }
Esempio n. 3
0
 private static void AddMeshDataBuilderFactory(IDependenciesProvider dependenciesProvider)
 {
     dependenciesProvider.AddTFactory <IMeshDataBuilder>(() => new MeshDataBuilder());
 }
Esempio n. 4
0
 private static void ComposeFactories(IDependenciesProvider dependenciesProvider)
 {
     AddMeshDataBuilderFactory(dependenciesProvider);
 }
Esempio n. 5
0
        private static void AddPrimitivesMeshDataDirector(IDependenciesProvider dependenciesProvider)
        {
            var meshBuilder = dependenciesProvider.GetFromFactories <IMeshDataBuilder>(typeof(IMeshDataBuilder));

            dependenciesProvider.AddTSingleton <IHexTubeMeshDataDirector>(new HexTubeMeshDataDirector(meshBuilder));
        }
Esempio n. 6
0
        private static void AddMeshDataSimplifyingService(IDependenciesProvider dependenciesProvider)
        {
            var meshSimplifyingService = new MeshDataSimplifyingService();

            dependenciesProvider.AddTSingleton <IMeshDataSimplifyingService>(meshSimplifyingService);
        }
Esempio n. 7
0
 private static void ComposeSingletons(IDependenciesProvider dependenciesProvider)
 {
     AddPrimitivesMeshDataDirector(dependenciesProvider);
     AddTreeMeshDirector(dependenciesProvider);
     AddMeshDataSimplifyingService(dependenciesProvider);
 }