public VirtualDeviceTableStorage(IConfigurationProvider configProvider, IAzureTableStorageClientFactory tableStorageClientFactory)
        {
            var storageConnectionString = configProvider.GetConfigurationSettingValue("device.StorageConnectionString");
            var deviceTableName         = configProvider.GetConfigurationSettingValue("device.TableName");

            _azureTableStorageClient = tableStorageClientFactory.CreateClient(storageConnectionString, deviceTableName);
        }
Esempio n. 2
0
        public JobRepository(IConfigurationProvider configurationProvider, IAzureTableStorageClientFactory tableStorageClientFactory)
        {
            var connectionString = configurationProvider.GetConfigurationSettingValue("device.StorageConnectionString");
            var tableName        = configurationProvider.GetConfigurationSettingValueOrDefault("JobTableName", "JobList");

            _azureTableStorageClient = tableStorageClientFactory.CreateClient(connectionString, tableName);
        }
Esempio n. 3
0
        public DeviceListFilterRepository(IConfigurationProvider configurationProvider, IAzureTableStorageClientFactory filterTableStorageClientFactory, IAzureTableStorageClientFactory clausesTableStorageClientFactory)
        {
            _storageAccountConnectionString = configurationProvider.GetConfigurationSettingValue("device.StorageConnectionString");
            string filterTableName = configurationProvider.GetConfigurationSettingValueOrDefault("DeviceListFilterTableName", _filterTableName);

            _filterTableStorageClient = filterTableStorageClientFactory.CreateClient(_storageAccountConnectionString, filterTableName);
            string clauseTableName = configurationProvider.GetConfigurationSettingValueOrDefault("SuggestedClauseTableName", _clauseTableName);

            _clauseTableStorageClient = clausesTableStorageClientFactory.CreateClient(_storageAccountConnectionString, clauseTableName);

            var task = InitializeDefaultFilter();
        }
        public LocationRulesRepository(IConfigurationProvider configurationProvider, IAzureTableStorageClientFactory tableStorageClientFactory, IBlobStorageClientFactory blobStorageClientFactory)
        {
            _storageAccountConnectionString      = configurationProvider.GetConfigurationSettingValue("device.StorageConnectionString");
            _locationRulesBlobStoreContainerName = configurationProvider.GetConfigurationSettingValue("LocationRulesStoreContainerName");
            _locationRulesNormalizedTableName    = configurationProvider.GetConfigurationSettingValue("LocationRulesTableName");
            _azureTableStorageClient             = tableStorageClientFactory.CreateClient(_storageAccountConnectionString, _locationRulesNormalizedTableName);
            _blobName          = configurationProvider.GetConfigurationSettingValue("AsaRefLocationRulesBlobName");
            _blobStorageClient = blobStorageClientFactory.CreateClient(_storageAccountConnectionString, _locationRulesBlobStoreContainerName);

            // note: InvariantCulture is read-only, so use en-US and hardcode all relevant aspects
            CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");

            _formatInfo = culture.DateTimeFormat;
            _formatInfo.ShortDatePattern = @"yyyy-MM-dd";
            _formatInfo.ShortTimePattern = @"HH-mm";
        }
 public VirtualDeviceTableStorage(IConfigurationProvider configProvider, IAzureTableStorageClientFactory tableStorageClientFactory)
 {
     var storageConnectionString = configProvider.GetConfigurationSettingValue("device.StorageConnectionString");
     var deviceTableName = configProvider.GetConfigurationSettingValue("device.TableName");
     _azureTableStorageClient = tableStorageClientFactory.CreateClient(storageConnectionString, deviceTableName);
 }
 public ApiRegistrationRepository(IConfigurationProvider configProvider, IAzureTableStorageClientFactory tableStorageClientFactory)
 {
     _azureTableStorageClient = tableStorageClientFactory.CreateClient(configProvider.GetConfigurationSettingValue("device.StorageConnectionString"), API_TABLE_NAME);
 }
Esempio n. 7
0
 public UserSettingsRepository(IConfigurationProvider configProvider, IAzureTableStorageClientFactory tableStorageClientFactory)
 {
     _storageAccountConnectionString = configProvider.GetConfigurationSettingValue("device.StorageConnectionString");
     _azureTableStorageClient        = tableStorageClientFactory.CreateClient(_storageAccountConnectionString, _settingsTableName);
 }
 public ApiRegistrationRepository(IConfigurationProvider configProvider, IAzureTableStorageClientFactory tableStorageClientFactory)
 {
     _azureTableStorageClient = tableStorageClientFactory.CreateClient(configProvider.GetConfigurationSettingValue("device.StorageConnectionString"), API_TABLE_NAME);
 }
Esempio n. 9
0
 public NameCacheRepository(IConfigurationProvider configurationProvider, IAzureTableStorageClientFactory tableStorageClientFactory)
 {
     _storageAccountConnectionString = configurationProvider.GetConfigurationSettingValue("device.StorageConnectionString");
     _nameCacheTableName             = configurationProvider.GetConfigurationSettingValueOrDefault("NameCacheTableName", "NameCacheList");
     _azureTableStorageClient        = tableStorageClientFactory.CreateClient(_storageAccountConnectionString, _nameCacheTableName);
 }