-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add small fixes trying to reintegrate into the clients locally
- Loading branch information
Showing
7 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using Elastic.Transport.Products.Elasticsearch; | ||
|
||
namespace Elastic.Transport.Tests | ||
{ | ||
public class Test | ||
{ | ||
public void Usage() | ||
{ | ||
var pool = new StaticConnectionPool(new [] { new Node(new Uri("http://localhost:9200")) }); | ||
var connection = new HttpConnection(); | ||
var serializer = LowLevelRequestResponseSerializer.Instance; | ||
|
||
var product = ElasticsearchProductRegistration.Default; | ||
var settings = new TransportConfiguration(pool, connection, serializer, product); | ||
var transport = new Transport<TransportConfiguration>(settings); | ||
|
||
var response = transport.Request<StringResponse>(HttpMethod.GET, "/"); | ||
} | ||
|
||
} | ||
} |