public static WorkflowOptions UseElasticsearch(this WorkflowOptions options, ConnectionSettings settings, string indexName)
 {
     options.UseSearchIndex(sp => new ElasticsearchIndexer(settings, indexName, sp.GetService <ILoggerFactory>()));
     return(options);
 }