File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,13 @@ public void SetupElasticClient()
165165 var elasticClient = new ElasticClient ( settings ) ;
166166 var log = Container . Resolve < ILog > ( ) ;
167167 Container . RegisterInstance < IElasticClient > ( elasticClient ) ;
168- Container . RegisterInstance < ESRepository < SimpleTrigger > > ( new ESRepository < SimpleTrigger > ( ) {
168+ var simpleTriggerRepo = new ESRepository < SimpleTrigger > ( ) {
169169 ElasticClient = elasticClient ,
170170 Log = log ,
171- } ) ;
171+ } ;
172+ if ( ! simpleTriggerRepo . IsServerAvailable ( ) )
173+ log . Warn ( "Elasticsearch server does not appear to be available." ) ;
174+ Container . RegisterInstance < ESRepository < SimpleTrigger > > ( simpleTriggerRepo ) ;
172175 Container . RegisterInstance < ESRepository < CronTrigger > > ( new ESRepository < CronTrigger > ( ) {
173176 ElasticClient = elasticClient ,
174177 Log = log ,
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ currentMenu: change-log
88## 2.0.0-beta7
99
1010__ Features__
11- * Expose additional properties to typed client by pushing their implementations into model assembly.
11+ * Add console client that can query the web API.
12+
13+ __ Chores__
14+ * Add IInEngineClient interface to client project.
1215
1316## 2.0.0-beta6
1417
You can’t perform that action at this time.
0 commit comments