コード例 #1
0
        // Initiates the client link process to manage the account of another customer.
        // Sends an invitation from an agency to a potential client.

        private async Task <AddClientLinksResponse> AddClientLinksAsync(IList <ClientLink> clientLinks)
        {
            var request = new AddClientLinksRequest
            {
                ClientLinks = clientLinks
            };

            return(await Service.CallAsync((s, r) => s.AddClientLinksAsync(r), request));
        }
        public async Task <AddClientLinksResponse> AddClientLinksAsync(
            IList <ClientLink> clientLinks)
        {
            var request = new AddClientLinksRequest
            {
                ClientLinks = clientLinks
            };

            return(await CustomerManagementService.CallAsync((s, r) => s.AddClientLinksAsync(r), request));
        }
コード例 #3
0
        public async Task <AddClientLinksResponse> AddClientLinksAsync(ApiAuthentication auth, ClientLink[] clientLinks)
        {
            var request = new AddClientLinksRequest
            {
                ClientLinks = clientLinks,
            };

            try
            {
                SetAuthHelper.SetAuth(auth, request);

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

            return(null);
        }
コード例 #4
0
        // Initiates the client link process to manage the account of another customer. 
        // Sends an invitation from an agency to a potential client.

        private async Task<AddClientLinksResponse> AddClientLinksAsync(IList<ClientLink> clientLinks)
        {
            var request = new AddClientLinksRequest
            {
                ClientLinks = clientLinks
            };

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