Skip to content

Commit

Permalink
Deleting whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wAsnk committed Sep 12, 2024
1 parent 745d1f5 commit 23448b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ public override void ConfigureServices(IServiceCollection services)
var configuration = _shellConfiguration.GetSection("OrchardCore_Elasticsearch");
var elasticConfiguration = configuration.Get<ElasticConnectionOptions>();
services.Configure<ElasticConnectionOptions>(o => o.ConfigurationExists = true);

// Otherwise the ElasticClient won't work. Copied all this from the OC Elasticsearch module.
#pragma warning disable CA2000 // Call System. IDisposable. Dispose on object created by
// 'GetConnectionSettings(elasticConfiguration)' before all references to it are out of scope
var settings = GetConnectionSettings(elasticConfiguration);
#pragma warning restore CA2000

services.AddSingleton<IElasticClient>(new ElasticClient(settings));
services.AddSingleton<ElasticIndexManager>();
}
Expand Down

0 comments on commit 23448b5

Please sign in to comment.