Skip to content

Commit a4acc94

Browse files
committed
moved dorequest(async) from generated interface to partial interface in a different file
1 parent f3e758f commit a4acc94

File tree

3 files changed

+36
-22
lines changed

3 files changed

+36
-22
lines changed

src/Elasticsearch.Net/Elasticsearch.Net.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
<Compile Include="Domain\Response\ElasticsearchServerError.cs" />
7474
<Compile Include="Exceptions\OneToOneServerException.cs" />
7575
<Compile Include="Exceptions\ElasticsearchAuthenticationException.cs" />
76+
<Compile Include="IElasticsearchClient.cs" />
7677
<Compile Include="Obsolete\IndicesDeleteAlias.cs" />
7778
<Compile Include="Obsolete\IndicesPutAlias.cs" />
7879
<Compile Include="Obsolete\IndicesRecoveryStatus.cs" />

src/Elasticsearch.Net/IElasticsearchClient.Generated.cs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Elasticsearch.Net
1818
///Generated of commit
1919
///</pre>
2020
///</summary>
21-
public interface IElasticsearchClient
21+
public partial interface IElasticsearchClient
2222
{
2323
//IConnection Connection { get; }
2424
//IConnectionConfigurationValues Settings { get; }
@@ -20080,26 +20080,5 @@ public interface IElasticsearchClient
2008020080

2008120081
Task<ElasticsearchResponse<DynamicDictionary>> UpdateAsync(string index, string type, string id, object body, Func<UpdateRequestParameters, UpdateRequestParameters> requestParameters = null);
2008220082

20083-
/// <summary>
20084-
/// Perform any request you want over the configured IConnection synchronously while taking advantage of the cluster failover.
20085-
/// </summary>
20086-
/// <typeparam name="T">The type representing the response JSON</typeparam>
20087-
/// <param name="method">the HTTP Method to use</param>
20088-
/// <param name="path">The path of the the url that you would like to hit</param>
20089-
/// <param name="data">The body of the request, string and byte[] are posted as is other types will be serialized to JSON</param>
20090-
/// <param name="requestParameters">Optionally configure request specific timeouts, headers</param>
20091-
/// <returns>An ElasticsearchResponse of T where T represents the JSON response body</returns>
20092-
ElasticsearchResponse<T> DoRequest<T>(string method, string path, object data = null, IRequestParameters requestParameters = null);
20093-
20094-
/// <summary>
20095-
/// Perform any request you want over the configured IConnection asynchronously while taking advantage of the cluster failover.
20096-
/// </summary>
20097-
/// <typeparam name="T">The type representing the response JSON</typeparam>
20098-
/// <param name="method">the HTTP Method to use</param>
20099-
/// <param name="path">The path of the the url that you would like to hit</param>
20100-
/// <param name="data">The body of the request, string and byte[] are posted as is other types will be serialized to JSON</param>
20101-
/// <param name="requestParameters">Optionally configure request specific timeouts, headers</param>
20102-
/// <returns>A task of ElasticsearchResponse of T where T represents the JSON response body</returns>
20103-
Task<ElasticsearchResponse<T>> DoRequestAsync<T>(string method, string path, object data = null, IRequestParameters requestParameters = null);
2010420083
}
2010520084
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Elasticsearch.Net
8+
{
9+
public partial interface IElasticsearchClient
10+
{
11+
/// <summary>
12+
/// Perform any request you want over the configured IConnection synchronously while taking advantage of the cluster failover.
13+
/// </summary>
14+
/// <typeparam name="T">The type representing the response JSON</typeparam>
15+
/// <param name="method">the HTTP Method to use</param>
16+
/// <param name="path">The path of the the url that you would like to hit</param>
17+
/// <param name="data">The body of the request, string and byte[] are posted as is other types will be serialized to JSON</param>
18+
/// <param name="requestParameters">Optionally configure request specific timeouts, headers</param>
19+
/// <returns>An ElasticsearchResponse of T where T represents the JSON response body</returns>
20+
ElasticsearchResponse<T> DoRequest<T>(string method, string path, object data = null, IRequestParameters requestParameters = null);
21+
22+
/// <summary>
23+
/// Perform any request you want over the configured IConnection asynchronously while taking advantage of the cluster failover.
24+
/// </summary>
25+
/// <typeparam name="T">The type representing the response JSON</typeparam>
26+
/// <param name="method">the HTTP Method to use</param>
27+
/// <param name="path">The path of the the url that you would like to hit</param>
28+
/// <param name="data">The body of the request, string and byte[] are posted as is other types will be serialized to JSON</param>
29+
/// <param name="requestParameters">Optionally configure request specific timeouts, headers</param>
30+
/// <returns>A task of ElasticsearchResponse of T where T represents the JSON response body</returns>
31+
Task<ElasticsearchResponse<T>> DoRequestAsync<T>(string method, string path, object data = null, IRequestParameters requestParameters = null);
32+
33+
}
34+
}

0 commit comments

Comments
 (0)