Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic updates #3623

Merged
merged 11 commits into from
Jan 13, 2023
Prev Previous commit
Rename hosted service
  • Loading branch information
sfmskywalker committed Jan 13, 2023
commit 977ee5bd3845e4015c357f27836f77d445758ef1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ElasticsearchFeature(IModule module) : base(module)
/// <inheritdoc />
public override void ConfigureHostedServices()
{
Module.ConfigureHostedService<ConfigureElasticsearchClientHostedService>(-2);
Module.ConfigureHostedService<ConfigureAliasesHostedService>(-2);
}

/// <inheritdoc />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
namespace Elsa.Elasticsearch.HostedServices;

/// <summary>
/// Configures the Elasticsearch client.
/// Configures aliases.
/// </summary>
public class ConfigureElasticsearchClientHostedService : IHostedService
public class ConfigureAliasesHostedService : IHostedService
{
private readonly ElasticsearchClient _client;
private readonly ElasticsearchOptions _options;
Expand All @@ -19,7 +19,7 @@ public class ConfigureElasticsearchClientHostedService : IHostedService
/// <summary>
/// Constructor.
/// </summary>
public ConfigureElasticsearchClientHostedService(ElasticsearchClient client, IOptions<ElasticsearchOptions> options, IEnumerable<IIndexConfiguration> configurations)
public ConfigureAliasesHostedService(ElasticsearchClient client, IOptions<ElasticsearchOptions> options, IEnumerable<IIndexConfiguration> configurations)
{
_client = client;
_options = options.Value;
Expand Down