private void CreateConnectionData(object sender)
        {
            IConfigurationProvider configurationProvider = (IConfigurationProvider) sender;

            this.connectionData = new ElasticSearchConnectionData();
            this.connectionData.Client = this.CreateElasticClient(configurationProvider);
            this.connectionData.LastIndexName = null;
            string indexNamePrefix = configurationProvider.GetValue("indexNamePrefix");
            this.connectionData.IndexNamePrefix = string.IsNullOrWhiteSpace(indexNamePrefix) ? string.Empty : indexNamePrefix + Dash;
        }
 private string GetIndexName(ElasticSearchConnectionData connectionData)
 {
     DateTimeOffset now = DateTimeOffset.UtcNow;
     string retval = connectionData.IndexNamePrefix + now.Year.ToString() + Dot + now.Month.ToString() + Dot + now.Day.ToString();
     return retval;
 }