Skip to content

Commit dbc54ac

Browse files
committed
Respond to transport refactoring
1 parent ced079e commit dbc54ac

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/Elastic.Clients.Elasticsearch/Common/Configuration/ElasticsearchClientSettings.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ public ElasticsearchClientSettings(InMemoryConnection connection)
5353
{
5454
}
5555

56-
public ElasticsearchClientSettings(INodePool nodePool) : this(nodePool, null, null) { }
56+
public ElasticsearchClientSettings(NodePool nodePool) : this(nodePool, null, null) { }
5757

58-
public ElasticsearchClientSettings(INodePool nodePool, SourceSerializerFactory sourceSerializer)
58+
public ElasticsearchClientSettings(NodePool nodePool, SourceSerializerFactory sourceSerializer)
5959
: this(nodePool, null, sourceSerializer) { }
6060

61-
public ElasticsearchClientSettings(INodePool nodePool, ITransportClient connection) : this(nodePool, connection, null) { }
61+
public ElasticsearchClientSettings(NodePool nodePool, ITransportClient connection) : this(nodePool, connection, null) { }
6262

63-
public ElasticsearchClientSettings(INodePool nodePool, ITransportClient connection, SourceSerializerFactory sourceSerializer) : this(
63+
public ElasticsearchClientSettings(NodePool nodePool, ITransportClient connection, SourceSerializerFactory sourceSerializer) : this(
6464
nodePool,
6565
connection, sourceSerializer, null)
6666
{
6767
}
6868

6969
public ElasticsearchClientSettings(
70-
INodePool nodePool,
70+
NodePool nodePool,
7171
ITransportClient connection,
7272
SourceSerializerFactory sourceSerializer,
7373
IPropertyMappingProvider propertyMappingProvider) : base(nodePool, connection, sourceSerializer, propertyMappingProvider)
@@ -102,7 +102,7 @@ public abstract class
102102
private string _defaultIndex;
103103

104104
protected ElasticsearchClientSettingsBase(
105-
INodePool nodePool,
105+
NodePool nodePool,
106106
ITransportClient connection,
107107
ElasticsearchClientSettings.SourceSerializerFactory? sourceSerializerFactory,
108108
IPropertyMappingProvider propertyMappingProvider)
@@ -372,19 +372,19 @@ public ConnectionConfiguration(string cloudId, IAuthenticationHeader credentials
372372
{
373373
}
374374

375-
public ConnectionConfiguration(INodePool nodePool) : this(nodePool, null, null) { }
375+
public ConnectionConfiguration(NodePool nodePool) : this(nodePool, null, null) { }
376376

377-
public ConnectionConfiguration(INodePool nodePool, ITransportClient connection) : this(nodePool,
377+
public ConnectionConfiguration(NodePool nodePool, ITransportClient connection) : this(nodePool,
378378
connection, null)
379379
{
380380
}
381381

382-
public ConnectionConfiguration(INodePool nodePool, Serializer serializer) : this(
382+
public ConnectionConfiguration(NodePool nodePool, Serializer serializer) : this(
383383
nodePool, null, serializer)
384384
{
385385
}
386386

387-
public ConnectionConfiguration(INodePool nodePool, ITransportClient connection,
387+
public ConnectionConfiguration(NodePool nodePool, ITransportClient connection,
388388
Serializer serializer)
389389
: base(nodePool, connection, serializer)
390390
{
@@ -402,7 +402,7 @@ public abstract class
402402
{
403403
private bool _includeServerStackTraceOnError;
404404

405-
protected ConnectionConfigurationBase(INodePool nodePool, ITransportClient connection,
405+
protected ConnectionConfigurationBase(NodePool nodePool, ITransportClient connection,
406406
Serializer? serializer,
407407
IProductRegistration registration = null)
408408
: base(nodePool, connection, serializer, registration ?? new ElasticsearchProductRegistration(typeof(IElasticClient))) =>

tests/Tests.Core/Client/Settings/AlwaysInMemoryElasticsearchClientSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public AlwaysInMemoryElasticsearchClientSettings() : base(forceInMemory: true) {
1717
public AlwaysInMemoryElasticsearchClientSettings(byte[] bytes) : base(forceInMemory: true, response: bytes) { }
1818

1919
public AlwaysInMemoryElasticsearchClientSettings(
20-
Func<ICollection<Uri>, INodePool> createPool = null,
20+
Func<ICollection<Uri>, NodePool> createPool = null,
2121
SourceSerializerFactory sourceSerializerFactory = null,
2222
IPropertyMappingProvider propertyMappingProvider = null,
2323
int port = 9200

tests/Tests.Core/Client/Settings/TestElasticsearchClientSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class TestElasticsearchClientSettings : ElasticsearchClientSettings
1616
public static readonly bool RunningFiddler = Process.GetProcessesByName("fiddler").Any() || Process.GetProcessesByName("fiddler everywhere").Any();
1717

1818
public TestElasticsearchClientSettings(
19-
Func<ICollection<Uri>, INodePool> createPool = null,
19+
Func<ICollection<Uri>, NodePool> createPool = null,
2020
SourceSerializerFactory sourceSerializerFactory = null,
2121
IPropertyMappingProvider propertyMappingProvider = null,
2222
bool forceInMemory = false,
@@ -75,7 +75,7 @@ private static SourceSerializerFactory CreateSerializerFactory(SourceSerializerF
7575
return (builtin, values) => new TestSourceSerializer(builtin, values);
7676
}
7777

78-
private static INodePool CreatePool(Func<ICollection<Uri>, INodePool> createPool = null,
78+
private static NodePool CreatePool(Func<ICollection<Uri>, NodePool> createPool = null,
7979
int port = 9200)
8080
{
8181
createPool ??= uris => new StaticNodePool(uris);

0 commit comments

Comments
 (0)