From bd19ae5d9fc521db59adf407c98731889578c224 Mon Sep 17 00:00:00 2001 From: Anatoliy Siryi Date: Thu, 1 Nov 2018 18:25:14 +0200 Subject: [PATCH] Fix typo in the "seach" word --- .../Auditing/ElasticSearchAuditingStore.cs | 8 ++++---- ...chClientProvider.cs => ElasticSearchClientProvider.cs} | 4 ++-- ...hClientProvider.cs => IElasticSearchClientProvider.cs} | 2 +- .../ElasticSearch/AbpElasticSearchTestModule.cs | 2 +- .../ElasticSearch/ElasticSearchClientTestProvider.cs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename src/Abp.ElasticSearch/ElasticSearch/{ElasticSeachClientProvider.cs => ElasticSearchClientProvider.cs} (85%) rename src/Abp.ElasticSearch/ElasticSearch/{IElasticSeachClientProvider.cs => IElasticSearchClientProvider.cs} (67%) diff --git a/src/Abp.ElasticSearch/Auditing/ElasticSearchAuditingStore.cs b/src/Abp.ElasticSearch/Auditing/ElasticSearchAuditingStore.cs index 2c3c442..422667c 100644 --- a/src/Abp.ElasticSearch/Auditing/ElasticSearchAuditingStore.cs +++ b/src/Abp.ElasticSearch/Auditing/ElasticSearchAuditingStore.cs @@ -7,19 +7,19 @@ namespace Abp.Auditing { public class ElasticSearchAuditingStore : IAuditingStore, ITransientDependency { - private readonly IElasticSeachClientProvider _elasticSeachClientProvider; + private readonly IElasticSearchClientProvider _elasticSearchClientProvider; private readonly IElasticSearchConfiguration _elasticSearchConfiguration; - public ElasticSearchAuditingStore(IElasticSeachClientProvider elasticSeachClientProvider, + public ElasticSearchAuditingStore(IElasticSearchClientProvider elasticSearchClientProvider, IElasticSearchConfiguration elasticSearchConfiguration) { - _elasticSeachClientProvider = elasticSeachClientProvider; + _elasticSearchClientProvider = elasticSearchClientProvider; _elasticSearchConfiguration = elasticSearchConfiguration; } public async Task SaveAsync(AuditInfo auditInfo) { - await _elasticSeachClientProvider.ElasticClient.IndexAsync(auditInfo, + await _elasticSearchClientProvider.ElasticClient.IndexAsync(auditInfo, x => x.Index(_elasticSearchConfiguration.AuditingLogIndexName)); } } diff --git a/src/Abp.ElasticSearch/ElasticSearch/ElasticSeachClientProvider.cs b/src/Abp.ElasticSearch/ElasticSearch/ElasticSearchClientProvider.cs similarity index 85% rename from src/Abp.ElasticSearch/ElasticSearch/ElasticSeachClientProvider.cs rename to src/Abp.ElasticSearch/ElasticSearch/ElasticSearchClientProvider.cs index f637ccc..9ad778f 100644 --- a/src/Abp.ElasticSearch/ElasticSearch/ElasticSeachClientProvider.cs +++ b/src/Abp.ElasticSearch/ElasticSearch/ElasticSearchClientProvider.cs @@ -7,12 +7,12 @@ namespace Abp.ElasticSearch { - public class ElasticSeachClientProvider : IElasticSeachClientProvider, ISingletonDependency + public class ElasticSearchClientProvider : IElasticSearchClientProvider, ISingletonDependency { private readonly IElasticSearchConfiguration _elasticSearchConfigration; private readonly Lazy _client; - public ElasticSeachClientProvider(IElasticSearchConfiguration elasticSearchConfigration) + public ElasticSearchClientProvider(IElasticSearchConfiguration elasticSearchConfigration) { _elasticSearchConfigration = elasticSearchConfigration; _client = new Lazy(CreatElasticClient); diff --git a/src/Abp.ElasticSearch/ElasticSearch/IElasticSeachClientProvider.cs b/src/Abp.ElasticSearch/ElasticSearch/IElasticSearchClientProvider.cs similarity index 67% rename from src/Abp.ElasticSearch/ElasticSearch/IElasticSeachClientProvider.cs rename to src/Abp.ElasticSearch/ElasticSearch/IElasticSearchClientProvider.cs index 832e9e2..1f5f5c3 100644 --- a/src/Abp.ElasticSearch/ElasticSearch/IElasticSeachClientProvider.cs +++ b/src/Abp.ElasticSearch/ElasticSearch/IElasticSearchClientProvider.cs @@ -2,7 +2,7 @@ namespace Abp.ElasticSearch { - public interface IElasticSeachClientProvider + public interface IElasticSearchClientProvider { IElasticClient ElasticClient { get; } } diff --git a/test/Abp.ElasticSearch.Tests/ElasticSearch/AbpElasticSearchTestModule.cs b/test/Abp.ElasticSearch.Tests/ElasticSearch/AbpElasticSearchTestModule.cs index 8792aca..89319f5 100644 --- a/test/Abp.ElasticSearch.Tests/ElasticSearch/AbpElasticSearchTestModule.cs +++ b/test/Abp.ElasticSearch.Tests/ElasticSearch/AbpElasticSearchTestModule.cs @@ -14,7 +14,7 @@ public override void PreInitialize() Configuration.Modules.ElasticSearch().AuthPassWord = "elasticpw"; Configuration.Modules.ElasticSearch().UseAuditingLog = false; - Configuration.ReplaceService(); + Configuration.ReplaceService(); } } } \ No newline at end of file diff --git a/test/Abp.ElasticSearch.Tests/ElasticSearch/ElasticSearchClientTestProvider.cs b/test/Abp.ElasticSearch.Tests/ElasticSearch/ElasticSearchClientTestProvider.cs index 8e871fe..bb511cf 100644 --- a/test/Abp.ElasticSearch.Tests/ElasticSearch/ElasticSearchClientTestProvider.cs +++ b/test/Abp.ElasticSearch.Tests/ElasticSearch/ElasticSearchClientTestProvider.cs @@ -5,7 +5,7 @@ namespace Abp.ElasticSearch.Tests.ElasticSearch { - public class ElasticSearchClientTestProvider : IElasticSeachClientProvider + public class ElasticSearchClientTestProvider : IElasticSearchClientProvider { private IElasticClient _client;