public ComputingCore(IFunctionRepository function_repository, IDataCellRepository data_cell_repository, ICommandRepository command_repository /*, ICommandManager command_manager*/, IDataFlowLogicsService data_flow_logics_service) { _functionRepository = function_repository; _dataCellRepository = data_cell_repository; _commandRepository = command_repository; //_commandManager = command_manager; _dataFlowLogicsService = data_flow_logics_service; }
public CommandManager(IFunctionRepository function_repository, IDataCellRepository data_cell_repository, IJobManager job_manager, ICommandRepository command_repository, ICommandService command_service) { _dataCellRepository = data_cell_repository; _functionRepository = function_repository; _jobManager = job_manager; _jobManager.OnReliseJob = OnReliseJob; _commandRepository = command_repository; _commandService = command_service; _commandHeaders = new ConcurrentQueue <CommandHeader>(); _readyCommands = new ConcurrentQueue <Command>(); _commandRepository.Subscribe(null, OnNewCommand); }
/// <summary> /// Конструктор. /// </summary> /// <param name="job_manager">Управлеяющий пулом исполнителей.</param> /// <param name="preparation_command_service">Сервис подготовки команд к исполнению.</param> public DataFlowLogicsService(IJobManager job_manager, IPreparationCommandService preparation_command_service, IDataCellRepository data_cell_repository) { _jobManager = job_manager; _preparationCommandService = preparation_command_service; _dataCellRepository = data_cell_repository; _preparationCommandService.OnPreparedCommand = OnPreparedCommand; _jobManager.OnReliseJob = (command) => { OnExecutedCommand(command); OnFreeJob(); }; }
public PreparationCommandService(IDataCellRepository data_cell_repository, IFunctionRepository function_repository) { _preparingCommands = new ConcurrentDictionary <string, Command>(); _dataCellRepository = data_cell_repository; _functionRepository = function_repository; }
public CommandService(IFunctionRepository function_repository, IDataCellRepository data_cell_repository, ICommandRepository command_repository) { _dataCellRepository = data_cell_repository; _functionRepository = function_repository; _commandRepository = command_repository; }
public FunctionRepository(IDataCellRepository data_cell_repository) { _dataCellRepository = data_cell_repository; }