Skip to content

Commit 450bbda

Browse files
[9.2] Allow use of custom ITransport<IElasticsearchClientSettings> (#8816) (#8818)
1 parent 2c879b9 commit 450bbda

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</PropertyGroup>
3232

3333
<ItemGroup>
34-
<PackageReference Include="Elastic.Transport" Version="0.10.2" />
34+
<PackageReference Include="Elastic.Transport" Version="0.10.3" />
3535
<PackageReference Include="PolySharp" Version="1.15.0">
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ public ElasticsearchClient(IElasticsearchClientSettings elasticsearchClientSetti
6767
{
6868
}
6969

70-
internal ElasticsearchClient(ITransport<IElasticsearchClientSettings> transport)
70+
/// <summary>
71+
/// Initializes a new instance of the client using the provided transport instance.
72+
/// </summary>
73+
/// <param name="transport">The transport implementation that provides connectivity and configuration for the Elasticsearch client.</param>
74+
public ElasticsearchClient(ITransport<IElasticsearchClientSettings> transport)
7175
{
7276
transport.ThrowIfNull(nameof(transport));
7377
transport.Configuration.ThrowIfNull(nameof(transport.Configuration));

0 commit comments

Comments
 (0)