Skip to content

Commit ef3c567

Browse files
committed
fix #580 allow ITransport to be injected in the NEST client the same as the low level client allows for
1 parent 8268d60 commit ef3c567

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Nest/ElasticClient.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public partial class ElasticClient : Nest.IElasticClient
4040
public ElasticClient(
4141
IConnectionSettingsValues settings = null,
4242
IConnection connection = null,
43-
INestSerializer serializer = null)
43+
INestSerializer serializer = null,
44+
ITransport transport = null)
4445
{
4546
this._connectionSettings = settings ?? new ConnectionSettings();
4647
this.Connection = connection ?? new HttpConnection(this._connectionSettings);
@@ -49,7 +50,7 @@ public ElasticClient(
4950
this.Raw = new ElasticsearchClient(
5051
this._connectionSettings,
5152
this.Connection,
52-
null, //default transport
53+
transport, //default transport
5354
this.Serializer
5455
);
5556
this.RawDispatch = new RawDispatch(this.Raw);

0 commit comments

Comments
 (0)