Ejemplo n.º 1
0
        public Deployments(
            AppConfig config,
            ILogger <Deployments> logger,
            IDeploymentEventLog deploymentLog,
            ITenantConnectionHelper tenantConnectionHelper,
            IConfigClient packagesConfigClient,
            IStorageAdapterClient client,
            IDevices devices,
            IStorageClient storageClient,
            IAppConfigurationClient appConfigurationClient)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.tenantHelper           = tenantConnectionHelper;
            this.deploymentLog          = deploymentLog;
            this.logger                 = logger;
            this.configClient           = packagesConfigClient;
            this.client                 = client;
            this.devices                = devices;
            this.config                 = config;
            this.storageClient          = storageClient;
            this.appConfigurationClient = appConfigurationClient;
        }
Ejemplo n.º 2
0
        public Devices(AppConfig config, ITenantConnectionHelper tenantConnectionHelper)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.tenantConnectionHelper = tenantConnectionHelper;
        }
Ejemplo n.º 3
0
        public Devices(AppConfig config, ITenantConnectionHelper tenantConnectionHelper, IAsaManagerClient asaManagerClient)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.tenantConnectionHelper = tenantConnectionHelper;
            this.asaManager             = asaManagerClient;
        }
Ejemplo n.º 4
0
        public Jobs(AppConfig config, IDeviceProperties deviceProperties, ITenantConnectionHelper tenantConnectionHelper)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.tenantConnectionHelper = tenantConnectionHelper;
            this.deviceProperties       = deviceProperties;
        }
Ejemplo n.º 5
0
        public Deployments(AppConfig config, ILogger <Deployments> logger, ITenantConnectionHelper tenantConnectionHelper)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.tenantHelper = tenantConnectionHelper;

            this.logger = logger;
        }
Ejemplo n.º 6
0
        public Deployments(
            AppConfig config,
            ILogger <Deployments> logger,
            IDeploymentEventLog deploymentLog,
            ITenantConnectionHelper tenantConnectionHelper,
            IConfigClient packagesConfigClient)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.tenantHelper  = tenantConnectionHelper;
            this.deploymentLog = deploymentLog;
            this.logger        = logger;
            this.configClient  = packagesConfigClient;
        }
        public Devices(
            AppConfig config,
            ITenantConnectionHelper tenantConnectionHelper,
            IAsaManagerClient asaManagerClient,
            IDeviceQueryCache deviceQueryCache,
            IStorageClient storageClient)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.tenantConnectionHelper = tenantConnectionHelper;
            this.asaManager             = asaManagerClient;
            this.deviceQueryCache       = deviceQueryCache;
            this.storageClient          = storageClient;
        }
Ejemplo n.º 8
0
        public Devices(
            AppConfig config,
            ITenantConnectionHelper tenantConnectionHelper,
            IAsaManagerClient asaManagerClient,
            IDeviceQueryCache deviceQueryCache,
            IStorageClient storageClient,
            IAppConfigurationClient appConfigurationClient,
            IKustoQueryClient kustoQueryClient)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.kustoEnabled = config.DeviceTelemetryService.Messages.TelemetryStorageType.Equals(
                TelemetryStorageTypeConstants.Ade, StringComparison.OrdinalIgnoreCase);

            this.kustoQueryClient       = kustoQueryClient;
            this.tenantConnectionHelper = tenantConnectionHelper;
            this.asaManager             = asaManagerClient;
            this.deviceQueryCache       = deviceQueryCache;
            this.storageClient          = storageClient;
            this.appConfigurationClient = appConfigurationClient;
        }
Ejemplo n.º 9
0
 public Deployments(ITenantConnectionHelper tenantHelper)
 {
     this.tenantHelper = tenantHelper ?? throw new ArgumentNullException("tenantHelper");
 }
Ejemplo n.º 10
0
 public Devices(ITenantConnectionHelper tenantConnectionHelper, string ioTHubHostName)
 {
     this.tenantConnectionHelper = tenantConnectionHelper ?? throw new ArgumentNullException("tenantConnectionHelper " + ioTHubHostName);
 }