// Gets the list of Target objects given the specified target identifiers.
        private async Task <IList <Target> > GetTargetsByIdsAsync(IList <long> targetIds)
        {
            var request = new GetTargetsByIdsRequest
            {
                TargetIds = targetIds,
            };

            return((await Service.CallAsync((s, r) => s.GetTargetsByIdsAsync(r), request)).Targets);
        }
Пример #2
0
        // Gets the list of Target objects given the specified target identifiers.
        private async Task<IList<Target>> GetTargetsByIdsAsync(IList<long> targetIds)
        {
            var request = new GetTargetsByIdsRequest
            {
                TargetIds = targetIds,
            };

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