public AddHeader ( string key, object value ) : void | ||
key | string | |
value | object | |
Résultat | void |
/// <summary> /// Marks the tracked links processed. /// </summary> /// <param name="self">The self.</param> /// <param name="clientId">The client identifier.</param> /// <param name="processId">The process identifier.</param> /// <returns>Task<System.Boolean>.</returns> /// <exception cref="HttpRequestException"> /// Throws an exception if the <see cref="P:System.Net.Http.HttpResponseMessage.IsSuccessStatusCode" /> property for the HTTP response is false. /// </exception> public async static Task<bool> MarkTrackedLinksProcessedAsync(this WowClient self, string clientId, Guid processId) { var request = new RestRequest { Resource = "client/{clientId}/trackedlinks/markprocessed/{processId}" }; request.AddHeader("api-version", "1"); request.AddUrlSegment("clientId", clientId); request.AddUrlSegment("processId", processId.ToString()); var result = await self.Client.ExecuteAsync<BasicResult>(request); return result.Result; }