Skip to content

Commit b979d1e

Browse files
Add GenerateDocumentationFile to make summaries show up in IDEs (#365)
1 parent 8e64fae commit b979d1e

File tree

13 files changed

+105
-16
lines changed

13 files changed

+105
-16
lines changed

Consul/ACL.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ private class ACLCreationResult
202202
/// [Deprecated] Create is used to generate a new token with the given parameters
203203
/// </summary>
204204
/// <param name="acl">The ACL entry to create</param>
205+
/// <param name="ct">The cancellation token</param>
205206
/// <returns>A write result containing the newly created ACL token</returns>
206207
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
207208
public Task<WriteResult<string>> Create(ACLEntry acl, CancellationToken ct = default)
@@ -214,6 +215,7 @@ public Task<WriteResult<string>> Create(ACLEntry acl, CancellationToken ct = def
214215
/// </summary>
215216
/// <param name="acl">The ACL entry to create</param>
216217
/// <param name="q">Customized write options</param>
218+
/// <param name="ct">The cancellation token</param>
217219
/// <returns>A write result containing the newly created ACL token</returns>
218220
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
219221
public async Task<WriteResult<string>> Create(ACLEntry acl, WriteOptions q, CancellationToken ct = default)
@@ -226,6 +228,7 @@ public async Task<WriteResult<string>> Create(ACLEntry acl, WriteOptions q, Canc
226228
/// [Deprecated] Update is used to update the rules of an existing token
227229
/// </summary>
228230
/// <param name="acl">The ACL entry to update</param>
231+
/// <param name="ct">The cancellation token</param>
229232
/// <returns>An empty write result</returns>
230233
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
231234
public Task<WriteResult> Update(ACLEntry acl, CancellationToken ct = default)
@@ -238,6 +241,7 @@ public Task<WriteResult> Update(ACLEntry acl, CancellationToken ct = default)
238241
/// </summary>
239242
/// <param name="acl">The ACL entry to update</param>
240243
/// <param name="q">Customized write options</param>
244+
/// <param name="ct">The cancellation token</param>
241245
/// <returns>An empty write result</returns>
242246
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
243247
public Task<WriteResult> Update(ACLEntry acl, WriteOptions q, CancellationToken ct = default)
@@ -249,6 +253,7 @@ public Task<WriteResult> Update(ACLEntry acl, WriteOptions q, CancellationToken
249253
/// [Deprecated] Destroy is used to destroy a given ACL token ID
250254
/// </summary>
251255
/// <param name="id">The ACL ID to destroy</param>
256+
/// <param name="ct">The cancellation token</param>
252257
/// <returns>An empty write result</returns>
253258
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
254259
public Task<WriteResult<bool>> Destroy(string id, CancellationToken ct = default)
@@ -261,6 +266,7 @@ public Task<WriteResult<bool>> Destroy(string id, CancellationToken ct = default
261266
/// </summary>
262267
/// <param name="id">The ACL ID to destroy</param>
263268
/// <param name="q">Customized write options</param>
269+
/// <param name="ct">The cancellation token</param>
264270
/// <returns>An empty write result</returns>
265271
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
266272
public Task<WriteResult<bool>> Destroy(string id, WriteOptions q, CancellationToken ct = default)
@@ -272,6 +278,7 @@ public Task<WriteResult<bool>> Destroy(string id, WriteOptions q, CancellationTo
272278
/// [Deprecated] Clone is used to return a new token cloned from an existing one
273279
/// </summary>
274280
/// <param name="id">The ACL ID to clone</param>
281+
/// <param name="ct">The cancellation token</param>
275282
/// <returns>A write result containing the newly created ACL token</returns>
276283
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
277284
public Task<WriteResult<string>> Clone(string id, CancellationToken ct = default)
@@ -284,6 +291,7 @@ public Task<WriteResult<string>> Clone(string id, CancellationToken ct = default
284291
/// </summary>
285292
/// <param name="id">The ACL ID to clone</param>
286293
/// <param name="q">Customized write options</param>
294+
/// <param name="ct">The cancellation token</param>
287295
/// <returns>A write result containing the newly created ACL token</returns>
288296
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
289297
public async Task<WriteResult<string>> Clone(string id, WriteOptions q, CancellationToken ct = default)
@@ -296,6 +304,7 @@ public async Task<WriteResult<string>> Clone(string id, WriteOptions q, Cancella
296304
/// [Deprecated] Info is used to query for information about an ACL token
297305
/// </summary>
298306
/// <param name="id">The ACL ID to request information about</param>
307+
/// <param name="ct">The cancellation token</param>
299308
/// <returns>A query result containing the ACL entry matching the provided ID, or a query result with a null response if no token matched the provided ID</returns>
300309
[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
301310
public Task<QueryResult<ACLEntry>> Info(string id, CancellationToken ct = default)

Consul/Agent.cs

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ public Task<QueryResult<Dictionary<string, AgentCheck>>> Checks(CancellationToke
794794
/// Checks returns the locally registered checks
795795
/// </summary>
796796
/// <param name="filter">Specifies the expression used to filter the queries results prior to returning the data</param>
797+
/// <param name="ct">The cancellation token</param>
797798
/// <returns>A map of the registered check names and check data</returns>
798799
public Task<QueryResult<Dictionary<string, AgentCheck>>> Checks(Filter filter, CancellationToken ct = default)
799800
{
@@ -813,6 +814,7 @@ public async Task<QueryResult<Dictionary<string, AgentService>>> Services(Cancel
813814
/// Services returns the locally registered services
814815
/// </summary>
815816
/// <param name="filter">Specifies the expression used to filter the queries results prior to returning the data</param>
817+
/// <param name="ct">The cancellation token</param>
816818
/// <returns>A map of the registered services and service data</returns>
817819
public async Task<QueryResult<Dictionary<string, AgentService>>> Services(Filter filter, CancellationToken ct = default)
818820
{
@@ -837,6 +839,7 @@ public Task<QueryResult<AgentMember[]>> Members(bool wan, CancellationToken ct =
837839
/// ServiceRegister is used to register a new service with the local agent
838840
/// </summary>
839841
/// <param name="service">A service registration object</param>
842+
/// <param name="ct">The cancellation token</param>
840843
/// <returns>An empty write result</returns>
841844
public Task<WriteResult> ServiceRegister(AgentServiceRegistration service, CancellationToken ct = default)
842845
{
@@ -848,6 +851,7 @@ public Task<WriteResult> ServiceRegister(AgentServiceRegistration service, Cance
848851
/// </summary>
849852
/// <param name="service">A service registration object</param>
850853
/// <param name="replaceExistingChecks">Missing health checks from the request will be deleted from the agent.</param>
854+
/// <param name="ct">The cancellation token</param>
851855
/// <returns>An empty write result</returns>
852856
public Task<WriteResult> ServiceRegister(AgentServiceRegistration service, bool replaceExistingChecks, CancellationToken ct = default)
853857
{
@@ -863,6 +867,7 @@ public Task<WriteResult> ServiceRegister(AgentServiceRegistration service, bool
863867
/// ServiceRegister is used to register a new service with the local agent
864868
/// </summary>
865869
/// <param name="serviceID">The service ID</param>
870+
/// <param name="ct">The cancellation token</param>
866871
/// <returns>An empty write result</returns>
867872
public Task<WriteResult> ServiceDeregister(string serviceID, CancellationToken ct = default)
868873
{
@@ -874,6 +879,7 @@ public Task<WriteResult> ServiceDeregister(string serviceID, CancellationToken c
874879
/// </summary>
875880
/// <param name="checkID">The check ID</param>
876881
/// <param name="note">An optional, arbitrary string to write to the check status</param>
882+
/// <param name="ct">The cancellation token</param>
877883
public Task PassTTL(string checkID, string note, CancellationToken ct = default)
878884
{
879885
return LegacyUpdateTTL(checkID, note, TTLStatus.Pass, ct);
@@ -884,6 +890,7 @@ public Task PassTTL(string checkID, string note, CancellationToken ct = default)
884890
/// </summary>
885891
/// <param name="checkID">The check ID</param>
886892
/// <param name="note">An optional, arbitrary string to write to the check status</param>
893+
/// <param name="ct">The cancellation token</param>
887894
public Task WarnTTL(string checkID, string note, CancellationToken ct = default)
888895
{
889896
return LegacyUpdateTTL(checkID, note, TTLStatus.Warn, ct);
@@ -894,6 +901,7 @@ public Task WarnTTL(string checkID, string note, CancellationToken ct = default)
894901
/// </summary>
895902
/// <param name="checkID">The check ID</param>
896903
/// <param name="note">An optional, arbitrary string to write to the check status</param>
904+
/// <param name="ct">The cancellation token</param>
897905
public Task FailTTL(string checkID, string note, CancellationToken ct = default)
898906
{
899907
return LegacyUpdateTTL(checkID, note, TTLStatus.Critical, ct);
@@ -905,6 +913,7 @@ public Task FailTTL(string checkID, string note, CancellationToken ct = default)
905913
/// <param name="checkID">The check ID</param>
906914
/// <param name="output">An optional, arbitrary string to write to the check status</param>
907915
/// <param name="status">The state to set the check to</param>
916+
/// <param name="ct">The cancellation token</param>
908917
/// <returns>An empty write result</returns>
909918
public Task<WriteResult> UpdateTTL(string checkID, string output, TTLStatus status, CancellationToken ct = default)
910919
{
@@ -922,6 +931,7 @@ public Task<WriteResult> UpdateTTL(string checkID, string output, TTLStatus stat
922931
/// <param name="checkID">The check ID</param>
923932
/// <param name="note">An optional, arbitrary string to note on the check status</param>
924933
/// <param name="status">The state to set the check to</param>
934+
/// <param name="ct">The cancellation token</param>
925935
/// <returns>An empty write result</returns>
926936
private Task<WriteResult> LegacyUpdateTTL(string checkID, string note, TTLStatus status, CancellationToken ct = default)
927937
{
@@ -937,6 +947,7 @@ private Task<WriteResult> LegacyUpdateTTL(string checkID, string note, TTLStatus
937947
/// CheckRegister is used to register a new check with the local agent
938948
/// </summary>
939949
/// <param name="check">A check registration object</param>
950+
/// <param name="ct">The cancellation token</param>
940951
/// <returns>An empty write result</returns>
941952
public Task<WriteResult> CheckRegister(AgentCheckRegistration check, CancellationToken ct = default)
942953
{
@@ -947,6 +958,7 @@ public Task<WriteResult> CheckRegister(AgentCheckRegistration check, Cancellatio
947958
/// CheckDeregister is used to deregister a check with the local agent
948959
/// </summary>
949960
/// <param name="checkID">The check ID to deregister</param>
961+
/// <param name="ct">The cancellation token</param>
950962
/// <returns>An empty write result</returns>
951963
public Task<WriteResult> CheckDeregister(string checkID, CancellationToken ct = default)
952964
{
@@ -958,6 +970,7 @@ public Task<WriteResult> CheckDeregister(string checkID, CancellationToken ct =
958970
/// </summary>
959971
/// <param name="addr">The address to join to</param>
960972
/// <param name="wan">Join the WAN pool</param>
973+
/// <param name="ct">The cancellation token</param>
961974
/// <returns>An empty write result</returns>
962975
public Task<WriteResult> Join(string addr, bool wan, CancellationToken ct = default)
963976
{
@@ -973,6 +986,7 @@ public Task<WriteResult> Join(string addr, bool wan, CancellationToken ct = defa
973986
/// ForceLeave is used to have the agent eject a failed node
974987
/// </summary>
975988
/// <param name="node">The node name to remove</param>
989+
/// <param name="ct">The cancellation token</param>
976990
/// <returns>An empty write result</returns>
977991
public Task<WriteResult> ForceLeave(string node, CancellationToken ct = default)
978992
{
@@ -1001,6 +1015,7 @@ public Task<WriteResult> Reload(CancellationToken ct = default)
10011015
/// Reload triggers a configuration reload for the agent we are connected to.
10021016
/// </summary>
10031017
/// <param name="node">The node name to reload</param>
1018+
/// <param name="ct">The cancellation token</param>
10041019
/// <returns>An empty write result</returns>
10051020
[Obsolete]
10061021
public Task<WriteResult> Reload(string node, CancellationToken ct = default)
@@ -1013,6 +1028,7 @@ public Task<WriteResult> Reload(string node, CancellationToken ct = default)
10131028
/// </summary>
10141029
/// <param name="serviceID">The service ID</param>
10151030
/// <param name="reason">An optional reason</param>
1031+
/// <param name="ct">The cancellation token</param>
10161032
/// <returns>An empty write result</returns>
10171033
public Task<WriteResult> EnableServiceMaintenance(string serviceID, string reason, CancellationToken ct = default)
10181034
{
@@ -1026,6 +1042,7 @@ public Task<WriteResult> EnableServiceMaintenance(string serviceID, string reaso
10261042
/// DisableServiceMaintenance toggles service maintenance mode off for the given service ID
10271043
/// </summary>
10281044
/// <param name="serviceID">The service ID</param>
1045+
/// <param name="ct">The cancellation token</param>
10291046
/// <returns>An empty write result</returns>
10301047
public Task<WriteResult> DisableServiceMaintenance(string serviceID, CancellationToken ct = default)
10311048
{
@@ -1038,6 +1055,7 @@ public Task<WriteResult> DisableServiceMaintenance(string serviceID, Cancellatio
10381055
/// EnableNodeMaintenance toggles node maintenance mode on for the agent we are connected to
10391056
/// </summary>
10401057
/// <param name="reason">An optional reason</param>
1058+
/// <param name="ct">The cancellation token</param>
10411059
/// <returns>An empty write result</returns>
10421060
public Task<WriteResult> EnableNodeMaintenance(string reason, CancellationToken ct = default)
10431061
{
@@ -1089,6 +1107,8 @@ public async Task<LogStream> MonitorJSON(LogLevel level = default, CancellationT
10891107
/// GetLocalServiceHealth returns the health info of a service registered on the local agent
10901108
/// </summary>
10911109
/// <param name="serviceName">Name of service</param>
1110+
/// <param name="q"></param>
1111+
/// <param name="ct">The cancellation token</param>
10921112
/// <returns>An array containing the details of each passing, warning, or critical service</returns>
10931113
public async Task<QueryResult<LocalServiceHealth[]>> GetLocalServiceHealth(string serviceName, QueryOptions q, CancellationToken ct = default)
10941114
{
@@ -1099,6 +1119,7 @@ public async Task<QueryResult<LocalServiceHealth[]>> GetLocalServiceHealth(strin
10991119
/// GetLocalServiceHealth returns the health info of a service registered on the local agent
11001120
/// </summary>
11011121
/// <param name="serviceName">Name of service</param>
1122+
/// <param name="ct">The cancellation token</param>
11021123
/// <returns>An array containing the details of each passing, warning, or critical service</returns>
11031124
public async Task<QueryResult<LocalServiceHealth[]>> GetLocalServiceHealth(string serviceName, CancellationToken ct = default)
11041125
{
@@ -1109,6 +1130,8 @@ public async Task<QueryResult<LocalServiceHealth[]>> GetLocalServiceHealth(strin
11091130
/// GetWorstLocalServiceHealth returns the worst aggregated status of a service registered on the local agent
11101131
/// </summary>
11111132
/// <param name="serviceName">Name of service</param>
1133+
/// <param name="q"></param>
1134+
/// <param name="ct">The cancellation token</param>
11121135
/// <returns>passing, warning, or critical</returns>
11131136
public async Task<QueryResult<string>> GetWorstLocalServiceHealth(string serviceName, QueryOptions q, CancellationToken ct = default)
11141137
{
@@ -1121,6 +1144,7 @@ public async Task<QueryResult<string>> GetWorstLocalServiceHealth(string service
11211144
/// GetWorstLocalServiceHealth returns the worst aggregated status of a service registered on the local agent
11221145
/// </summary>
11231146
/// <param name="serviceName">Name of service</param>
1147+
/// <param name="ct">The cancellation token</param>
11241148
/// <returns>passing, warning, or critical</returns>
11251149
public async Task<QueryResult<string>> GetWorstLocalServiceHealth(string serviceName, CancellationToken ct = default)
11261150
{
@@ -1131,6 +1155,8 @@ public async Task<QueryResult<string>> GetWorstLocalServiceHealth(string service
11311155
/// GetLocalServiceHealthByID returns the health info of a service registered on the local agent by ID
11321156
/// </summary>
11331157
/// <param name="serviceID">ID of the service</param>
1158+
/// <param name="q"></param>
1159+
/// <param name="ct">The cancellation token</param>
11341160
/// <returns>An array containing the details of each passing, warning, or critical service</returns>
11351161
public async Task<QueryResult<LocalServiceHealth>> GetLocalServiceHealthByID(string serviceID, QueryOptions q, CancellationToken ct = default)
11361162
{
@@ -1141,6 +1167,7 @@ public async Task<QueryResult<LocalServiceHealth>> GetLocalServiceHealthByID(str
11411167
/// GetLocalServiceHealthByID returns the health info of a service registered on the local agent by ID
11421168
/// </summary>
11431169
/// <param name="serviceID">ID of the service</param>
1170+
/// <param name="ct">The cancellation token</param>
11441171
/// <returns>An array containing the details of each passing, warning, or critical service</returns>
11451172
public async Task<QueryResult<LocalServiceHealth>> GetLocalServiceHealthByID(string serviceID, CancellationToken ct = default)
11461173
{
@@ -1150,7 +1177,7 @@ public async Task<QueryResult<LocalServiceHealth>> GetLocalServiceHealthByID(str
11501177
/// <summary>
11511178
/// GetAgentHostInfo returns the host info of the agent
11521179
/// </summary>
1153-
/// <param name="ct"></param>
1180+
/// <param name="ct">The cancellation token</param>
11541181
/// <returns>Agent Host Information</returns>
11551182
public async Task<QueryResult<AgentHostInfo>> GetAgentHostInfo(CancellationToken ct = default)
11561183
{
@@ -1160,7 +1187,7 @@ public async Task<QueryResult<AgentHostInfo>> GetAgentHostInfo(CancellationToken
11601187
/// <summary>
11611188
/// GetAgentVersion returns the version of the agent
11621189
/// </summary>
1163-
/// <param name="ct"></param>
1190+
/// <param name="ct">The cancellation token</param>
11641191
/// <returns>Version of the agent</returns>
11651192
public async Task<QueryResult<AgentVersion>> GetAgentVersion(CancellationToken ct = default)
11661193
{
@@ -1301,7 +1328,7 @@ IEnumerator IEnumerable.GetEnumerator()
13011328
/// <summary>
13021329
/// GetAgentMetrics returns the metrics of the local agent
13031330
/// </summary>
1304-
/// <param name="ct"></param>
1331+
/// <param name="ct">The cancellation token</param>
13051332
/// <returns>Metrics of the local agent</returns>
13061333
public async Task<QueryResult<Metrics>> GetAgentMetrics(CancellationToken ct = default)
13071334
{

0 commit comments

Comments
 (0)