示例#1
0
        /// <summary>
        /// Searches the reverse asynchronous.
        /// </summary>
        /// <param name="method">The method.</param>
        /// <param name="value">The value.</param>
        /// <param name="token">The token.</param>
        /// <param name="limit">The limit.</param>
        /// <param name="offset">The offset.</param>
        /// <returns></returns>
        public async Task <SearchReverseResponse> SearchReverseAsync(ReverseSearchMethod method,
                                                                     string value,
                                                                     CancellationToken token,
                                                                     int limit  = 10,
                                                                     int offset = 0)
        {
            var data = new SearchReverseRequest
            {
                Method = method,
                Value  = value,
                Limit  = limit,
                Offset = offset
            };

            return(await _serviceV1.Get <SearchReverseResponse, SearchReverseRequest>(data, token).ConfigureAwait(_configureAwait));
        }
示例#2
0
        //TODO

        #endregion

        #region Reverses (V1)

        /// <summary>
        /// Searches the reverse.
        /// </summary>
        /// <param name="method">The method.</param>
        /// <param name="value">The value.</param>
        /// <param name="limit">The limit.</param>
        /// <param name="offset">The offset.</param>
        /// <returns></returns>
        public SearchReverseResponse SearchReverse(ReverseSearchMethod method, string value, int limit = 10, int offset = 0)
        {
            return(SearchReverseAsync(method, value, CancellationToken.None, limit, offset).Result);
        }