GetSettingByKey() 공개 메소드

public GetSettingByKey ( string key ) : string
key string
리턴 string
        protected override void InitializeTarget()
        {
            base.InitializeTarget();
            ValidateParameters();
            _configManager = new ConfigManager(ConnectionStringKey);
            _tableStorageManager = new TableStorageManager(_configManager, TableName);

            if (!string.IsNullOrWhiteSpace(PartitionKeyPrefixKey))
                PartitionKeyPrefix = _configManager.GetSettingByKey(PartitionKeyPrefixKey);
        }
예제 #2
0
        protected override void InitializeTarget()
        {
            base.InitializeTarget();
            ValidateParameters();
            _configManager       = new ConfigManager(ConnectionStringKey);
            _tableStorageManager = new TableStorageManager(_configManager, TableName);

            if (!string.IsNullOrWhiteSpace(PartitionKeyPrefixKey))
            {
                PartitionKeyPrefix = _configManager.GetSettingByKey(PartitionKeyPrefixKey);
            }
        }
        protected override void InitializeTarget()
        {
            base.InitializeTarget();
            ValidateParameters();
            _configManager = new ConfigManager(ConnectionStringKey);
            _tableStorageManager = new TableStorageManager(_configManager, TableName);

            // use PartitionKeyPrefixKey if present
            if (!string.IsNullOrWhiteSpace(PartitionKeyPrefixKey))
            {
                PartitionKeyPrefix = _configManager.GetSettingByKey(PartitionKeyPrefixKey);
            }
            // else use PartitionKeyPrefixDateFormat if available
            else if (!string.IsNullOrWhiteSpace(PartitionKeyPrefixDateFormat))
            {
                PartitionKeyPrefix = DateTime.UtcNow.ToString(PartitionKeyPrefixDateFormat);
            }
        }
예제 #4
0
        protected override void InitializeTarget()
        {
            base.InitializeTarget();
            ValidateParameters();
            _configManager       = new ConfigManager(ConnectionStringKey);
            _tableStorageManager = new TableStorageManager(_configManager, TableName);

            // use PartitionKeyPrefixKey if present
            if (!string.IsNullOrWhiteSpace(PartitionKeyPrefixKey))
            {
                PartitionKeyPrefix = _configManager.GetSettingByKey(PartitionKeyPrefixKey);
            }
            // else use PartitionKeyPrefixDateFormat if available
            else if (!string.IsNullOrWhiteSpace(PartitionKeyPrefixDateFormat))
            {
                PartitionKeyPrefix = DateTime.UtcNow.ToString(PartitionKeyPrefixDateFormat);
            }
        }