private static List <Func <object> > CatCommandsAsync(ElasticClient elastic) { return(new List <Func <object> > { () => elastic.CatAliasesAsync(new CatAliasesRequest()), () => elastic.CatAllocationAsync(new CatAllocationRequest()), () => elastic.CatCountAsync(new CatCountRequest()), () => elastic.CatFielddataAsync(new CatFielddataRequest()), () => elastic.CatHealthAsync(new CatHealthRequest()), () => elastic.CatHelpAsync(new CatHelpRequest()), () => elastic.CatIndicesAsync(new CatIndicesRequest()), () => elastic.CatMasterAsync(new CatMasterRequest()), () => elastic.CatNodeAttributesAsync(new CatNodeAttributesRequest()), () => elastic.CatNodesAsync(new CatNodesRequest()), () => elastic.CatPendingTasksAsync(new CatPendingTasksRequest()), () => elastic.CatPluginsAsync(new CatPluginsRequest()), () => elastic.CatRecoveryAsync(new CatRecoveryRequest()), () => elastic.CatRepositoriesAsync(new CatRepositoriesRequest()), () => elastic.CatSegmentsAsync(new CatSegmentsRequest()), () => elastic.CatShardsAsync(new CatShardsRequest()), () => elastic.CatSnapshotsAsync(new CatSnapshotsRequest()), () => elastic.CatTasksAsync(new CatTasksRequest()), () => elastic.CatTemplatesAsync(new CatTemplatesRequest()), () => elastic.CatThreadPoolAsync(new CatThreadPoolRequest()), }); }