// Updates the specified Target object within the customer library.
        // The operation requires exactly one Target in a list.
        private async Task UpdateTargetsInLibraryAsync(IList <Target> targets)
        {
            var request = new UpdateTargetsInLibraryRequest
            {
                Targets = targets
            };

            await Service.CallAsync((s, r) => s.UpdateTargetsInLibraryAsync(r), request);
        }
        // Updates the specified Target object within the customer library. 
        // The operation requires exactly one Target in a list.
        private void UpdateTargetsInLibraryAsync(IList<Target> targets)
        {
            var request = new UpdateTargetsInLibraryRequest
            {
                Targets = targets
            };

            Service.CallAsync((s, r) => s.UpdateTargetsInLibraryAsync(r), request);
        }