2023-01-06 12:05:03 +00:00
|
|
|
using Elsa.Elasticsearch.Options;
|
2023-01-06 11:08:35 +00:00
|
|
|
using Elsa.Elasticsearch.Services;
|
|
|
|
|
using Elsa.Workflows.Runtime.Entities;
|
|
|
|
|
using Nest;
|
|
|
|
|
|
|
|
|
|
namespace Elsa.Elasticsearch.Modules.Runtime;
|
|
|
|
|
|
|
|
|
|
public class ExecutionLogConfiguration : IElasticConfiguration
|
|
|
|
|
{
|
2023-01-07 19:31:42 +00:00
|
|
|
public void Apply(ConnectionSettings connectionSettings, IDictionary<string,string> aliasConfig)
|
2023-01-06 11:08:35 +00:00
|
|
|
{
|
|
|
|
|
connectionSettings.DefaultMappingFor<WorkflowExecutionLogRecord>(m =>
|
2023-01-07 19:31:42 +00:00
|
|
|
m.IndexName(aliasConfig[nameof(WorkflowExecutionLogRecord)]));
|
2023-01-06 11:08:35 +00:00
|
|
|
}
|
|
|
|
|
}
|