Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pidanwl/Abp.ElasticSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
cdpidan committed May 13, 2019
2 parents 17044e5 + 4ae3476 commit d3977ff
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/Abp.ElasticSearch/Auditing/ElasticSearchAuditingStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

namespace Abp.ElasticSearch
{
public class ElasticSeachClientProvider : IElasticSeachClientProvider, ISingletonDependency
public class ElasticSearchClientProvider : IElasticSearchClientProvider, ISingletonDependency
{
private readonly IElasticSearchConfiguration _elasticSearchConfigration;
private readonly Lazy<IElasticClient> _client;

public ElasticSeachClientProvider(IElasticSearchConfiguration elasticSearchConfigration)
public ElasticSearchClientProvider(IElasticSearchConfiguration elasticSearchConfigration)
{
_elasticSearchConfigration = elasticSearchConfigration;
_client = new Lazy<IElasticClient>(CreatElasticClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Abp.ElasticSearch
{
public interface IElasticSeachClientProvider
public interface IElasticSearchClientProvider
{
IElasticClient ElasticClient { get; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public override void PreInitialize()
Configuration.Modules.ElasticSearch().AuthPassWord = "elasticpw";
Configuration.Modules.ElasticSearch().UseAuditingLog = false;

Configuration.ReplaceService<IElasticSeachClientProvider, ElasticSearchClientTestProvider>();
Configuration.ReplaceService<IElasticSearchClientProvider, ElasticSearchClientTestProvider>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Abp.ElasticSearch.Tests.ElasticSearch
{
public class ElasticSearchClientTestProvider : IElasticSeachClientProvider
public class ElasticSearchClientTestProvider : IElasticSearchClientProvider
{
private IElasticClient _client;

Expand Down

0 comments on commit d3977ff

Please sign in to comment.