public ComponentInitializer Create(ComponentRegistryService componentRegistryService) { if (componentRegistryService == null) { throw new ArgumentNullException(nameof(componentRegistryService)); } return(new ComponentInitializer(componentRegistryService, _pythonScriptHostFactoryService, _repositoryService, _loggerFactory)); }
public ComponentInitializer( ComponentRegistryService componentRegistryService, PythonScriptHostFactoryService pythonScriptHostFactoryService, RepositoryService repositoryService, ILoggerFactory loggerFactory) { _componentRegistryService = componentRegistryService ?? throw new ArgumentNullException(nameof(componentRegistryService)); _pythonScriptHostFactoryService = pythonScriptHostFactoryService ?? throw new ArgumentNullException(nameof(_pythonScriptHostFactoryService)); _repositoryService = repositoryService ?? throw new ArgumentNullException(nameof(repositoryService)); _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); }
public ComponentInitializer( ComponentRegistryService componentRegistryService, PythonScriptHostFactoryService pythonScriptHostFactoryService, PackageManagerService packageManagerService, ILogger <ScriptComponentLogic> scriptComponentLogicLogger, ILogger <ScriptComponentAdapter> scriptComponentAdapterLogger) { _componentRegistryService = componentRegistryService ?? throw new ArgumentNullException(nameof(componentRegistryService)); _pythonScriptHostFactoryService = pythonScriptHostFactoryService ?? throw new ArgumentNullException(nameof(_pythonScriptHostFactoryService)); _packageManagerService = packageManagerService ?? throw new ArgumentNullException(nameof(packageManagerService)); _scriptComponentLogicLogger = scriptComponentLogicLogger ?? throw new ArgumentNullException(nameof(scriptComponentLogicLogger)); _scriptComponentAdapterLogger = scriptComponentAdapterLogger ?? throw new ArgumentNullException(nameof(scriptComponentAdapterLogger)); }
public ComponentInitializer( ComponentRegistryService componentRegistryService, PythonEngineService pythonEngineService, StorageService storageService, RepositoryService repositoryService, ILoggerFactory loggerFactory) { _componentRegistryService = componentRegistryService ?? throw new ArgumentNullException(nameof(componentRegistryService)); _pythonEngineService = pythonEngineService ?? throw new ArgumentNullException(nameof(pythonEngineService)); _storageService = storageService ?? throw new ArgumentNullException(nameof(storageService)); _repositoryService = repositoryService ?? throw new ArgumentNullException(nameof(repositoryService)); _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); }
public ComponentInitializer Create(ComponentRegistryService componentRegistryService) { if (componentRegistryService == null) { throw new ArgumentNullException(nameof(componentRegistryService)); } return(new ComponentInitializer( componentRegistryService, _pythonScriptHostFactoryService, _packageManagerService, _scriptComponentLogicLogger, _scriptComponentAdapterLogger)); }
public ComponentGroupRegistryService( StorageService storageService, SystemStatusService systemInformationService, ComponentRegistryService componentRegistryService, MessageBusService messageBusService, ILoggerFactory loggerFactory) { _storageService = storageService ?? throw new ArgumentNullException(nameof(storageService)); _componentRegistryService = componentRegistryService ?? throw new ArgumentNullException(nameof(componentRegistryService)); _messageBusService = messageBusService ?? throw new ArgumentNullException(nameof(messageBusService)); if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } _logger = loggerFactory.CreateLogger <ComponentGroupRegistryService>(); if (systemInformationService == null) { throw new ArgumentNullException(nameof(systemInformationService)); } systemInformationService.Set("component_group_registry.count", () => _componentGroups.Count); }
public ComponentPythonProxy(string componentUid, ComponentRegistryService componentRegistryService) { _componentUid = componentUid ?? throw new ArgumentNullException(nameof(componentUid)); _componentRegistryService = componentRegistryService ?? throw new ArgumentNullException(nameof(componentRegistryService)); }
public ComponentRegistryServicePythonProxy(ComponentRegistryService componentRegistryService) { _componentRegistryService = componentRegistryService ?? throw new ArgumentNullException(nameof(componentRegistryService)); }