Exemple #1
0
 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 DeviceConfigurationManager(IDeviceConfigurationRepo deviceConfigRepo, IDataStreamManager dataStreamManager, IDeviceMessageDefinitionManager deviceMessageDefinitionManager,
                                   IPipelineModuleManager pipelineModuleManager, IDeviceAdminManager deviceAdminManager, IAdminLogger logger, IDeploymentInstanceManagerCore deploymentInstnaceManager,
                                   IAppConfig appConfig, IDependencyManager depmanager, ISecurity security) : base(logger, appConfig, depmanager, security)
 {
     _pipelineModuleManager          = pipelineModuleManager;
     _deviceConfigRepo               = deviceConfigRepo;
     _deviceAdminManager             = deviceAdminManager;
     _deviceMessageDefinitionManager = deviceMessageDefinitionManager;
     _deploymentInstanceManager      = deploymentInstnaceManager;
     _dataStreamManager              = dataStreamManager;
 }
Exemple #3
0
        public void TestInit()
        {
            _dataStreamManager = new DataStreamManager(_repo.Object, new Mock <ISharedConnectionManager>().Object, _mockSettings.Object, _orgUtils.Object, new Logging.Loggers.AdminLogger(new Utils.LogWriter()), _secureStorage.Object, new Mock <IAppConfig>().Object, new Mock <IDependencyManager>().Object, new Mock <ISecurity>().Object);

            _mockSettings.Setup(ms => ms.DefaultInternalDataStreamConnectionSettingsTableStorage).Returns(new ConnectionSettings()
            {
                AccessKey = DEFAULT_TS_ACCESS_KEY, AccountId = DEFAULT_TS_ACCOUNT_ID
            });

            _org  = Core.Models.EntityHeader.Create("A8A087E53D2043538F32FB18C2CA67F7", "myorg");
            _user = Core.Models.EntityHeader.Create("14AEF7E53D2043538222FB18C2CA6733", "myuser");

            _secureStorage.Setup <Task <Core.Validation.InvokeResult <string> > >(obj => obj.AddSecretAsync(_org, It.IsAny <string>())).ReturnsAsync(InvokeResult <string> .Create(GENERATD_SECURE_ID_VALUE));
            _secureStorage.Setup <Task <Core.Validation.InvokeResult> >(obj => obj.RemoveSecretAsync(_org, It.IsAny <string>())).ReturnsAsync(InvokeResult.Success);
        }
Exemple #4
0
 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));
 }
Exemple #6
0
 public DataStreamController(IDataStreamManager dataStreamManager, UserManager <AppUser> userManager, IAdminLogger logger) : base(userManager, logger)
 {
     _dataStreamManager = dataStreamManager;
     _adminlogger       = logger;
 }