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();

            _tableStorageManager = new TableStorageManager(ConnectionString, TableName);

            if (string.IsNullOrWhiteSpace(PartitionKey))
                PartitionKey = "${date}";

            if (string.IsNullOrWhiteSpace(RowKey))
                PartitionKey = "${ticks}.${guid}";
        }
        protected override void InitializeTarget()
        {
            base.InitializeTarget();
            ValidateParameters();

            _tableStorageManager = new TableStorageManager(ConnectionString, TableName);

            if (string.IsNullOrWhiteSpace(PartitionKey))
            {
                PartitionKey = "${date}";
            }

            if (string.IsNullOrWhiteSpace(RowKey))
            {
                PartitionKey = "${ticks}.${guid}";
            }
        }
        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);
            }
        }
예제 #6
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);
            }
        }
예제 #7
0
 protected override void InitializeTarget()
 {
     base.InitializeTarget();
     ValidateParameters();
     _tableStorageManager = new TableStorageManager(ConnectionStringKey, TableName);
 }