@@ -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