Skip to content

Commit 2603dad

Browse files
committed
initial move of files to Elastic.Transport
1 parent f7550a1 commit 2603dad

File tree

150 files changed

+1602
-1474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1602
-1474
lines changed

Elasticsearch.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ ProjectSection(SolutionItems) = preProject
7979
Directory.Build.targets = Directory.Build.targets
8080
EndProjectSection
8181
EndProject
82+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elastic.Transport", "src\Elastic.Transport\Elastic.Transport.csproj", "{F510A0DE-8758-4A90-AE10-E25BE87A6D3D}"
83+
EndProject
8284
Global
8385
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8486
Debug|Any CPU = Debug|Any CPU
@@ -113,6 +115,7 @@ Global
113115
{D6997ADC-E933-418E-831C-DE1A78897493} = {29E53C13-34F7-4F0D-8D28-41EF768793E7}
114116
{5A9C1B95-9280-433E-8D1B-1F5396126166} = {29E53C13-34F7-4F0D-8D28-41EF768793E7}
115117
{432D5575-2347-4D3C-BF8C-3E38410C46CA} = {29E53C13-34F7-4F0D-8D28-41EF768793E7}
118+
{F510A0DE-8758-4A90-AE10-E25BE87A6D3D} = {3EA11364-0513-44B7-AD6D-A675485E7448}
116119
EndGlobalSection
117120
GlobalSection(ProjectConfigurationPlatforms) = postSolution
118121
{5B393962-7586-49BA-BD99-3B1E35F48E94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -191,5 +194,9 @@ Global
191194
{3D4B5CC3-43E1-44BD-A0EA-63798563B475}.Debug|Any CPU.Build.0 = Debug|Any CPU
192195
{3D4B5CC3-43E1-44BD-A0EA-63798563B475}.Release|Any CPU.ActiveCfg = Release|Any CPU
193196
{3D4B5CC3-43E1-44BD-A0EA-63798563B475}.Release|Any CPU.Build.0 = Release|Any CPU
197+
{F510A0DE-8758-4A90-AE10-E25BE87A6D3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
198+
{F510A0DE-8758-4A90-AE10-E25BE87A6D3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
199+
{F510A0DE-8758-4A90-AE10-E25BE87A6D3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
200+
{F510A0DE-8758-4A90-AE10-E25BE87A6D3D}.Release|Any CPU.Build.0 = Release|Any CPU
194201
EndGlobalSection
195202
EndGlobal
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,27 @@
33
// See the LICENSE file in the project root for more information
44

55
using System;
6+
using Elasticsearch.Net.Extensions;
67

78
namespace Elasticsearch.Net
89
{
910
/// <summary>
1011
/// An audit of the request made
1112
/// </summary>
12-
public class Audit
13+
public class Audit
1314
{
1415
public Audit(AuditEvent type, DateTime started)
1516
{
1617
Event = type;
1718
Started = started;
1819
}
19-
20+
2021
/// <summary>
2122
/// The type of audit event
2223
/// </summary>
2324
public AuditEvent Event { get; internal set; }
2425

25-
26+
2627
/// <summary>
2728
/// The node on which the request was made
2829
/// </summary>
@@ -32,7 +33,7 @@ public Audit(AuditEvent type, DateTime started)
3233
/// The path of the request
3334
/// </summary>
3435
public string Path { get; internal set; }
35-
36+
3637

3738
/// <summary>
3839
/// The end date and time of the audit
@@ -43,7 +44,7 @@ public Audit(AuditEvent type, DateTime started)
4344
/// The start date and time of the audit
4445
/// </summary>
4546
public DateTime Started { get; }
46-
47+
4748
/// <summary>
4849
/// The exception for the audit, if there was one.
4950
/// </summary>
@@ -54,7 +55,7 @@ public override string ToString()
5455
var took = Ended - Started;
5556
var tookString = string.Empty;
5657
if (took >= TimeSpan.Zero) tookString = $" Took: {took}";
57-
58+
5859
return Node == null ? $"Event: {Event.GetStringValue()}{tookString}" : $"Event: {Event.GetStringValue()} Node: {Node?.Uri} NodeAlive: {Node?.IsAlive}Took: {tookString}";
5960
}
6061
}

src/Elasticsearch.Net/Auditing/AuditEvent.cs renamed to src/Elastic.Transport/Auditing/AuditEvent.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information
44

55
using System.Diagnostics;
6+
using Elasticsearch.Net.Extensions;
67
using static Elasticsearch.Net.AuditEvent;
78

89
namespace Elasticsearch.Net
@@ -43,12 +44,12 @@ public static string GetAuditDiagnosticEventName(this AuditEvent @event)
4344
{
4445
switch(@event)
4546
{
46-
case SniffFailure:
47+
case SniffFailure:
4748
case SniffSuccess:
48-
case PingFailure:
49-
case PingSuccess:
50-
case BadResponse:
51-
case HealthyResponse:
49+
case PingFailure:
50+
case PingSuccess:
51+
case BadResponse:
52+
case HealthyResponse:
5253
return null;
5354
case SniffOnStartup: return nameof(SniffOnStartup);
5455
case SniffOnFail: return nameof(SniffOnFail);
@@ -64,8 +65,8 @@ public static string GetAuditDiagnosticEventName(this AuditEvent @event)
6465
default: return @event.GetStringValue(); //still cached but uses reflection
6566
}
6667
}
67-
68-
68+
69+
6970
}
70-
71+
7172
}
File renamed without changes.

src/Elasticsearch.Net/Configuration/ConnectionConfiguration.cs renamed to src/Elastic.Transport/Configuration/ConnectionConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace Elasticsearch.Net
2424
{
2525
/// <summary>
26-
/// Allows you to control how <see cref="ElasticLowLevelClient"/> behaves and where/how it connects to Elasticsearch
26+
/// Allows you to control how <see cref="ITransport{TConnectionSettings}"/> behaves and where/how it connects to Elastic Stack products
2727
/// </summary>
2828
public class ConnectionConfiguration : ConnectionConfiguration<ConnectionConfiguration>
2929
{

src/Elasticsearch.Net/Configuration/IConnectionConfigurationValues.cs renamed to src/Elastic.Transport/Configuration/IConnectionConfigurationValues.cs

File renamed without changes.

src/Elasticsearch.Net/Configuration/RequestConfiguration.cs renamed to src/Elastic.Transport/Configuration/RequestConfiguration.cs

File renamed without changes.

src/Elasticsearch.Net/Configuration/Security/ApiKeyAuthenticationCredentials.cs renamed to src/Elastic.Transport/Configuration/Security/ApiKeyAuthenticationCredentials.cs

File renamed without changes.

src/Elasticsearch.Net/Configuration/Security/BasicAuthenticationCredentials.cs renamed to src/Elastic.Transport/Configuration/Security/BasicAuthenticationCredentials.cs

File renamed without changes.

src/Elasticsearch.Net/Connection/CertificateValidations.cs renamed to src/Elastic.Transport/Connection/CertificateValidations.cs

File renamed without changes.

0 commit comments

Comments
 (0)