private void ConfigureElasticSearch() { try { // Initializing RunES _elastic = new RunES(); var workerIPs = ListWorkerRoles(); DiagnosticsHelper.TraceInformation("OnStart workerIPs: " + workerIPs); DiagnosticsHelper.TraceInformation("OnStart ESLocation: " + Settings.CacheDir); _process = _elastic.StartES(Settings.CacheDir, Settings.DefaultElasticPort, workerIPs); } catch (Exception ex) { DiagnosticsHelper.TraceInformation(ex.Message + " " + ex.StackTrace); DiagnosticsHelper.TraceError(ex.Message + " " + ex.StackTrace); Trace.Flush(); throw new ApplicationException("Can't configure Elastic Search: " + ex.Message); } }
private void ConfigureElasticSearch() { try { // Initializing RunES _elastic = new RunES(); var workerIPs = ListWorkerRoles(); DiagnosticsHelper.TraceInformation("OnStart workerIPs: " + workerIPs); DiagnosticsHelper.TraceInformation("OnStart CacheLocation: " + Settings.CacheDir); _process = _elastic.StartES(Settings.CacheDir, Settings.DefaultElasticPort, workerIPs); } catch (Exception ex) { DiagnosticsHelper.TraceInformation(ex.Message + " " + ex.StackTrace); DiagnosticsHelper.TraceError(ex.Message + " " + ex.StackTrace); Trace.Flush(); throw new ApplicationException("Can't configure Elastic Search: " + ex.Message); } }