public DeploymentInstanceManagerCore(IDeploymentHostManager deploymentHostManager, IDeploymentInstanceRepo instanceRepo, IDeviceRepositoryManager deviceManagerRepo, ISecureStorage secureStorage, IDeploymentInstanceStatusRepo deploymentInstanceStatusRepo, IAdminLogger logger, IAppConfig appConfig, IDependencyManager depmanager, ISecurity security) : base(logger, appConfig, depmanager, security) { _deviceManagerRepo = deviceManagerRepo; _instanceRepo = instanceRepo; _secureStorage = secureStorage; _deploymentHostManager = deploymentHostManager; _deploymentInstanceStatusRepo = deploymentInstanceStatusRepo; }
public void Init() { _host = new DeploymentHost() { Id = "MYHOSTID", Status = EntityHeader <HostStatus> .Create(HostStatus.Offline) }; _hostRepo.Setup(hrs => hrs.GetDeploymentHostAsync(_host.Id, true)).ReturnsAsync(_host); _deploymentHostManager = new DeploymentHostManager(_hostRepo.Object, new Mock <IDeploymentActivityQueueManager>().Object, new Mock <IDeploymentActivityRepo>().Object, new Mock <IDeploymentConnectorService>().Object, new Mock <IDeploymentInstanceRepo>().Object, new Mock <IAdminLogger>().Object, new Mock <IDeploymentHostStatusRepo>().Object, new Mock <IAppConfig>().Object, new Mock <IDependencyManager>().Object, _security.Object); }
public DeploymentInstanceManager(IDeviceRepositoryManager deviceRepoManager, IDeploymentConnectorService connector, IDeploymentHostManager hostManager, IDeviceRepositoryManager deviceManagerRepo, IDeploymentActivityQueueManager deploymentActivityQueueManager, IDeploymentInstanceRepo instanceRepo, ISolutionManager solutionManager, IDeploymentHostRepo hostRepo, IDeploymentInstanceStatusRepo deploymentStatusInstanceRepo, IAdminLogger logger, IAppConfig appConfig, IDependencyManager depmanager, ISecurity security) : base(hostManager, instanceRepo, deviceManagerRepo, deploymentStatusInstanceRepo, logger, appConfig, depmanager, security) { _hostManager = hostManager; _instanceRepo = instanceRepo; _solutionManager = solutionManager; _deploymentActivityQueueManager = deploymentActivityQueueManager; _connector = connector; _deviceRepoManager = deviceRepoManager; _hostRepo = hostRepo; _deploymentInstanceStatusRepo = deploymentStatusInstanceRepo; }
public RuntimeController(IDeploymentInstanceManager instanceManager, IRuntimeTokenManager runtimeTokenManager, IOrgUserRepo orgUserRepo, IAppUserManagerReadOnly userManager, IDeploymentHostManager hostManager, IServiceTicketCreator ticketCreator, IEmailSender emailSender, ISmsSender smsSendeer, IDistributionManager distroManager, ISecureStorage secureStorage, IAdminLogger logger) { _ticketCreator = ticketCreator ?? throw new ArgumentNullException(nameof(ticketCreator)); _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); _orgUserRepo = orgUserRepo ?? throw new ArgumentNullException(nameof(orgUserRepo)); _instanceManager = instanceManager ?? throw new ArgumentNullException(nameof(instanceManager)); _secureStorage = secureStorage ?? throw new ArgumentNullException(nameof(secureStorage)); _runtimeTokenManager = runtimeTokenManager ?? throw new ArgumentNullException(nameof(runtimeTokenManager)); _hostManager = hostManager ?? throw new ArgumentNullException(nameof(hostManager)); _emailSender = emailSender ?? throw new ArgumentNullException(nameof(emailSender)); _distroManager = distroManager ?? throw new ArgumentNullException(nameof(distroManager)); _smsSender = smsSendeer ?? throw new ArgumentNullException(nameof(smsSendeer)); }
public CloneServices(IDeviceAdminManager deviceAdminMgr, ISubscriptionManager subscriptionMgr, IPipelineModuleManager pipelineMgr, IDeviceTypeManager deviceTypeMgr, IDeviceRepositoryManager deviceRepoMgr, IProductManager productManager, IDeviceConfigurationManager deviceCfgMgr, IDeviceMessageDefinitionManager deviceMsgMgr, IDeploymentHostManager hostMgr, IDeploymentInstanceManager instanceMgr, ISolutionManager solutionMgr, IVerifierManager verifierMgr) { _deviceAdminMgr = deviceAdminMgr; _subscriptionMgr = subscriptionMgr; _pipelineMgr = pipelineMgr; _deviceTypeMgr = deviceTypeMgr; _deviceMsgMgr = deviceMsgMgr; _deviceCfgMgr = deviceCfgMgr; _deviceRepoMgr = deviceRepoMgr; _productManager = productManager; _verifierMgr = verifierMgr; _hostMgr = hostMgr; _instanceMgr = instanceMgr; _solutionMgr = solutionMgr; }
public DeploymentInstanceManager(IDeviceRepositoryManager deviceRepoManager, IDeploymentConnectorService connector, IDeploymentHostManager hostManager, IDeviceRepositoryManager deviceManagerRepo, IDeploymentActivityQueueManager deploymentActivityQueueManager, IDeploymentInstanceRepo instanceRepo, ISolutionManager solutionManager, IDeploymentHostRepo hostRepo, IDeploymentInstanceStatusRepo deploymentStatusInstanceRepo, IDataStreamManager dataStreamManager, IAdminLogger logger, IAppConfig appConfig, IDependencyManager depmanager, ISecurity security, ISecureStorage secureStorage, ISolutionVersionRepo solutionVersionRepo, IContainerRepositoryManager containerRepoMgr) : base(hostManager, instanceRepo, deviceManagerRepo, secureStorage, deploymentStatusInstanceRepo, logger, appConfig, depmanager, security) { _hostManager = hostManager; _appConfig = appConfig; _adminLogger = logger; _instanceRepo = instanceRepo; _solutionManager = solutionManager; _deploymentActivityQueueManager = deploymentActivityQueueManager; _solutionVersionRepo = solutionVersionRepo; _connector = connector; _deviceRepoManager = deviceRepoManager; _hostRepo = hostRepo; _secureStorage = secureStorage; _deploymentInstanceStatusRepo = deploymentStatusInstanceRepo; _containerRepoMgr = containerRepoMgr; _dataStreamManager = dataStreamManager; }
public DeploymentInstanceManager(IDeviceRepositoryManager deviceRepoManager, IDeploymentConnectorService connector, IDeploymentHostManager hostManager, IDeviceRepositoryManager deviceManagerRepo, IDeploymentActivityQueueManager deploymentActivityQueueManager, IDeploymentInstanceRepo instanceRepo, ISolutionManager solutionManager, IDeploymentHostRepo hostRepo, IDeploymentInstanceStatusRepo deploymentStatusInstanceRepo, IUserManager userManager, IDataStreamManager dataStreamManager, IAdminLogger logger, IAppConfig appConfig, IDependencyManager depmanager, ISecurity security, ISecureStorage secureStorage, ISolutionVersionRepo solutionVersionRepo, IContainerRepositoryManager containerRepoMgr, IPipelineModuleManager pipelineModuleManager, IDeviceTypeManager deviceTypeManager) : base(hostManager, instanceRepo, deviceManagerRepo, secureStorage, deploymentStatusInstanceRepo, userManager, logger, appConfig, depmanager, security) { _hostManager = hostManager ?? throw new ArgumentNullException(nameof(hostManager)); _appConfig = appConfig ?? throw new ArgumentNullException(nameof(appConfig)); _adminLogger = logger ?? throw new ArgumentNullException(nameof(logger)); _instanceRepo = instanceRepo ?? throw new ArgumentNullException(nameof(instanceRepo)); _solutionManager = solutionManager ?? throw new ArgumentNullException(nameof(solutionManager)); _deploymentActivityQueueManager = deploymentActivityQueueManager ?? throw new ArgumentNullException(nameof(deploymentActivityQueueManager)); _solutionVersionRepo = solutionVersionRepo ?? throw new ArgumentNullException(nameof(solutionVersionRepo)); _connector = connector ?? throw new ArgumentNullException(nameof(connector)); _deviceRepoManager = deviceRepoManager ?? throw new ArgumentNullException(nameof(deviceRepoManager)); _hostRepo = hostRepo ?? throw new ArgumentNullException(nameof(hostRepo)); _secureStorage = secureStorage ?? throw new ArgumentNullException(nameof(secureStorage)); _deploymentInstanceStatusRepo = deploymentStatusInstanceRepo ?? throw new ArgumentNullException(nameof(deploymentStatusInstanceRepo)); _containerRepoMgr = containerRepoMgr ?? throw new ArgumentNullException(nameof(containerRepoMgr)); _dataStreamManager = dataStreamManager ?? throw new ArgumentNullException(nameof(dataStreamManager)); _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); _pipelineModuleManager = pipelineModuleManager ?? throw new ArgumentNullException(nameof(pipelineModuleManager)); _deviceTypeManager = deviceTypeManager ?? throw new ArgumentNullException(nameof(deviceTypeManager)); }
public DeploymentInstanceManager(IDeviceRepositoryManager deviceRepoManager, IDeploymentConnectorService connector, IDeploymentHostManager hostManager, IDeviceRepositoryManager deviceManagerRepo, IDeploymentActivityQueueManager deploymentActivityQueueManager, IDeploymentInstanceRepo instanceRepo, ISolutionManager solutionManager, IDeploymentHostRepo hostRepo, IDeploymentInstanceStatusRepo deploymentStatusInstanceRepo, IDataStreamManager dataStreamManager, IAdminLogger logger, IAppConfig appConfig, IDependencyManager depmanager, ISecurity security, ISolutionVersionRepo solutionVersionRepo, IContainerRepositoryManager containerRepoMgr, ISecureStorage secureStorage, IProxyFactory proxyFactory) : this(deviceRepoManager, connector, hostManager, deviceManagerRepo, deploymentActivityQueueManager, instanceRepo, solutionManager, hostRepo, deploymentStatusInstanceRepo, dataStreamManager, logger, appConfig, depmanager, security, secureStorage, solutionVersionRepo, containerRepoMgr) { _proxyFactory = proxyFactory ?? throw new ArgumentNullException(nameof(proxyFactory)); }
public DeploymentHostController(IDeploymentHostManager hostManager, IProductStore productStore, UserManager <AppUser> userManager, IAdminLogger logger) : base(userManager, logger) { _hostManager = hostManager; _productStore = productStore; }