internal ConnectionSettings GetConnectionSettings() { var cs = new ConnectionSettings(new UriBuilder("http", Host, Port, "/").Uri, Index); #if DEBUG cs.EnableTrace(true); #endif return cs; }
public ConnectionSettings Get() { var pool = new SniffingConnectionPool(Url); var settings = new ConnectionSettings(pool); settings.ThrowOnElasticsearchServerExceptions(); if (EnableTrace) settings.EnableTrace(); return settings; }