/// <summary> /// Инициализирует сервисы. /// </summary> /// <param name="method_service">Сервис для работы и хранения методов.</param> /// <param name="assembly_service">Сервис для работы с библиотеками C#.</param> /// <param name="coordination_service">Сервис координации.</param> /// <param name="data_service">Сервис хранения данных.</param> /// <param name="web_server_service"></param> public InvokeServiceFactory(IMethodService method_service, IAssemblyService assembly_service, ICoordinationService coordination_service, IDataService <DataInvoke> data_service, IWebServerService web_server_service, RemoteInvokeService remote_invoke_service) { _methodService = method_service; _assemblyService = assembly_service; _coordinationService = coordination_service; _webServerService = web_server_service; _remoteInvokeService = remote_invoke_service; // new RemoteInvokeService(_coordinationService, _webServerService); var invoke_c_sharp_method = new InvokeCSharpService(_assemblyService, _methodService, data_service); var invoke_executable_file = new InvokeExecutableFileService(new ExecutableFileMethodService(), data_service); _serviceDictionary = new Dictionary <Type, IInvokeService> { /*{typeof(RemoteInvokeService), remote_invoke_service}, * {typeof(InvokeCSharpService), invoke_c_sharp_method},*/ { typeof(CSharpMethod), invoke_c_sharp_method }, { typeof(ExecutableFileMethod), invoke_executable_file } }; }
public CoordinationsController(ICoordinationService coordinationService, IMapper mapper) { _coordinationService = coordinationService; _mapper = mapper; }