Пример #1
0
        // Searches client links for the customer of the current authenticated user,
        // filtered by the search criteria.

        private async Task <IList <ClientLink> > SearchClientLinksAsync(
            IList <OrderBy> ordering,
            Paging pageInfo,
            IList <Predicate> predicates)
        {
            var request = new SearchClientLinksRequest
            {
                Ordering   = ordering,
                PageInfo   = pageInfo,
                Predicates = predicates
            };

            return((await Service.CallAsync((s, r) => s.SearchClientLinksAsync(r), request)).ClientLinks);
        }
        public async Task <SearchClientLinksResponse> SearchClientLinksAsync(
            IList <Predicate> predicates,
            IList <OrderBy> ordering,
            Paging pageInfo)
        {
            var request = new SearchClientLinksRequest
            {
                Predicates = predicates,
                Ordering   = ordering,
                PageInfo   = pageInfo
            };

            return(await CustomerManagementService.CallAsync((s, r) => s.SearchClientLinksAsync(r), request));
        }
Пример #3
0
        public async Task <SearchClientLinksResponse> SearchClientLinksAsync(ApiAuthentication auth, OrderBy[] orderBy, Paging paging, Predicate[] predicates)
        {
            var request = new SearchClientLinksRequest
            {
                Ordering   = orderBy,
                PageInfo   = paging,
                Predicates = predicates
            };

            try
            {
                SetAuthHelper.SetAuth(auth, request);

                return(await Check().SearchClientLinksAsync(request));
            }
            catch (Exception ex)
            {
                Log(new LogEventArgs(ServiceType.CustomerManagement, "SearchClientLinksAsync", ex.Message, new { Request = request }, ex));
            }

            return(null);
        }
Пример #4
0
        // Searches client links for the customer of the current authenticated user,
        // filtered by the search criteria.

        private async Task<IList<ClientLink>> SearchClientLinksAsync(
           IList<OrderBy> ordering,
           Paging pageInfo,
           IList<Predicate> predicates)
        {
            var request = new SearchClientLinksRequest
            {
                Ordering = ordering,
                PageInfo = pageInfo,
                Predicates = predicates
            };

            return (await Service.CallAsync((s, r) => s.SearchClientLinksAsync(r), request)).ClientLinks;
        }