Exemplo n.º 1
0
            public FunctionalBlockCollectionHandler(
                IFunctionalBlockManager functionalBlockManager,
                ILogger logger,
                IDockingManagerSettingsProvider dockingManagerSettingsProvider)
            {
                _functionalBlockManager = functionalBlockManager;
                _logger = logger;
                _dockingManagerSettingsProvider = dockingManagerSettingsProvider;

                _collectFunctionalBlockOperationPool = new ObjectPool <CollectFunctionalBlockOperation>(onFinished
                                                                                                        => new CollectFunctionalBlockOperation(this, onFinished));
            }
            public DockingManager(
                ILogger logger,
                IBatteryBlockManager batteryBlockManager,
                IConnectorManager connectorManager,
                IFunctionalBlockManager functionalBlockManager,
                IGasTankManager gasTankManager,
                ILandingGearManager landingGearManager)
            {
                _dockOperationPool = new ObjectPool <DockOperation>(onFinished
                                                                    => new DockOperation(this, onFinished));

                _undockOperationPool = new ObjectPool <UndockOperation>(onFinished
                                                                        => new UndockOperation(this, onFinished));

                _toggleOperationPool = new ObjectPool <ToggleOperation>(onFinished
                                                                        => new ToggleOperation(this, onFinished));

                _logger = logger;
                _batteryBlockManager    = batteryBlockManager;
                _connectorManager       = connectorManager;
                _functionalBlockManager = functionalBlockManager;
                _gasTankManager         = gasTankManager;
                _landingGearManager     = landingGearManager;
            }