コード例 #1
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));

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

            return(labels.Labels);
        }
コード例 #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);
        }
コード例 #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));
        }