コード例 #1
0
ファイル: PostEndpoint.cs プロジェクト: necroscope/NestDemo
 private void SetAlias(string nextIndex, string alias)
 {
     var indicesForAlias = _client.GetIndicesPointingToAlias(Settings.Alias).ToList();
     var newIndices = new[] {nextIndex};
     _client = new ElasticClientWrapper();
     _client.Swap(alias, indicesForAlias, newIndices);
 }
コード例 #2
0
ファイル: PostEndpoint.cs プロジェクト: necroscope/NestDemo
 public PostEndpoint()
 {
     _client = new ElasticClientWrapper();
     _customerRepo = new CustomerRepository();
 }
コード例 #3
0
ファイル: DeleteEndpoint.cs プロジェクト: necroscope/NestDemo
 public DeleteEndpoint()
 {
     _client = new ElasticClientWrapper();
 }