/// <summary>
        /// List all labels for a check.
        /// </summary>
        /// <param name="checkId">ID of the check</param>
        /// <returns>a list of all labels for a check</returns>
        public async Task <List <Label> > GetLabelsAsync(string checkId)
        {
            Arguments.CheckNonEmptyString(checkId, nameof(checkId));

            var labels = await _service.GetChecksIDLabelsAsync(checkId).ConfigureAwait(false);

            return(labels.Labels);
        }
Exemple #2
0
        /// <summary>
        /// List all labels for a check.
        /// </summary>
        /// <param name="checkId">ID of the check</param>
        /// <returns>a list of all labels for a check</returns>
        public async Task <List <Label> > GetLabelsAsync(string checkId)
        {
            Arguments.CheckNonEmptyString(checkId, nameof(checkId));

            return((await _service.GetChecksIDLabelsAsync(checkId)).Labels);
        }
Exemple #3
0
        /// <summary>
        /// List all labels for a check.
        /// </summary>
        /// <param name="checkId">ID of the check</param>
        /// <returns>a list of all labels for a check</returns>
        public async Task <List <Label> > GetLabelsAsync(string checkId)
        {
            Arguments.CheckNonEmptyString(checkId, nameof(checkId));

            return(await _service.GetChecksIDLabelsAsync(checkId).ContinueWith(t => t.Result.Labels));
        }