From 6c80275814e3bedd84d2218e14a521d3309a723b Mon Sep 17 00:00:00 2001 From: Brandon Cuff Date: Wed, 29 Nov 2017 18:08:30 -0800 Subject: [PATCH] Added Nest5Test to make sure nest5 works --- .../Elasticsearch.Net.Aws.sln | 11 +++++++++- .../Nest5Test/Nest5Test.csproj | 16 +++++++++++++++ .../Nest5Test/Program.cs | 20 +++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 src/Elasticsearch.Net.Aws/Nest5Test/Nest5Test.csproj create mode 100644 src/Elasticsearch.Net.Aws/Nest5Test/Program.cs diff --git a/src/Elasticsearch.Net.Aws/Elasticsearch.Net.Aws.sln b/src/Elasticsearch.Net.Aws/Elasticsearch.Net.Aws.sln index 690c973..65f7178 100644 --- a/src/Elasticsearch.Net.Aws/Elasticsearch.Net.Aws.sln +++ b/src/Elasticsearch.Net.Aws/Elasticsearch.Net.Aws.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26403.7 +VisualStudioVersion = 15.0.27004.2010 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elasticsearch.Net.Aws", "Elasticsearch.Net.Aws\Elasticsearch.Net.Aws.csproj", "{0DE39CEC-A00F-409A-9D45-AAFA31C77ED9}" EndProject @@ -9,6 +9,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElasticSearch.Net.Aws.Tests EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElasticSearch.Net.Aws.IntegrationTests", "ElasticSearch.Net.Aws.IntegrationTests\ElasticSearch.Net.Aws.IntegrationTests.csproj", "{91470D9E-D497-4FF7-A22C-3825D3CE0074}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nest5Test", "Nest5Test\Nest5Test.csproj", "{A7CC8B86-CAF9-4BD6-98F4-84987411677C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -25,8 +27,15 @@ Global {91470D9E-D497-4FF7-A22C-3825D3CE0074}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {91470D9E-D497-4FF7-A22C-3825D3CE0074}.Debug|Any CPU.Build.0 = Debug|Any CPU {91470D9E-D497-4FF7-A22C-3825D3CE0074}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A7CC8B86-CAF9-4BD6-98F4-84987411677C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A7CC8B86-CAF9-4BD6-98F4-84987411677C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A7CC8B86-CAF9-4BD6-98F4-84987411677C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A7CC8B86-CAF9-4BD6-98F4-84987411677C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1D324722-47B4-48FA-BC81-5E982410896F} + EndGlobalSection EndGlobal diff --git a/src/Elasticsearch.Net.Aws/Nest5Test/Nest5Test.csproj b/src/Elasticsearch.Net.Aws/Nest5Test/Nest5Test.csproj new file mode 100644 index 0000000..5569830 --- /dev/null +++ b/src/Elasticsearch.Net.Aws/Nest5Test/Nest5Test.csproj @@ -0,0 +1,16 @@ + + + + Exe + netcoreapp2.0 + + + + + + + + + + + diff --git a/src/Elasticsearch.Net.Aws/Nest5Test/Program.cs b/src/Elasticsearch.Net.Aws/Nest5Test/Program.cs new file mode 100644 index 0000000..c172ea8 --- /dev/null +++ b/src/Elasticsearch.Net.Aws/Nest5Test/Program.cs @@ -0,0 +1,20 @@ +using System; +using Elasticsearch.Net.Aws; +using Nest; +using Elasticsearch.Net; + +namespace Nest5Test +{ + class Program + { + static void Main(string[] args) + { + var httpConnection = new AwsHttpConnection("us-east-1"); + var pool = new SingleNodeConnectionPool(new Uri("https://someendpoint.us-east-1.es.amazonaws.com")); + var config = new ConnectionSettings(pool, httpConnection); + var client = new ElasticClient(config); + client.Ping(); + Console.WriteLine("pinged successfully"); + } + } +} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy