public Task<ServiceResponse<UsageDataCollection>> GetUsageDataAsync(int? skip = default(int?), int? top = default(int?), UsageDataFilter? filter = default(UsageDataFilter?), IEnumerable<string> targets = null)
        {
            _progress.ReportIssue(LocalizedStrings.FileOutputServiceNotSupported);
            var response = ServiceResponse.Create(new UsageDataCollection());

            return Task.FromResult(response);
        }
Ejemplo n.º 2
0
        public async Task<ServiceResponse<UsageDataCollection>> GetUsageDataAsync(int? skip = null, int? top = null, UsageDataFilter? filter = null, IEnumerable<string> targets = null)
        {
            var usedApiUrl = UrlBuilder.Create(Endpoints.UsedApi)
                .AddQuery("skip", skip)
                .AddQuery("top", top)
                .AddQuery("filter", filter)
                .AddQueryList("targets", targets)
                .Url;

            return await _client.CallAsync<UsageDataCollection>(HttpMethod.Get, usedApiUrl);
        }
Ejemplo n.º 3
0
        public async Task<ActionResult> Index(int? skip, int? top, UsageDataFilter? filter, IEnumerable<string> targets)
        {
            try
            {
                var usage = await _apiPortService.GetUsageDataAsync(skip ?? 0, top ?? 25, filter ?? UsageDataFilter.HideSupported, targets);

                return View(usage.Response);
            }
            catch (PortabilityAnalyzerException)
            {
                return View(null);
            }
        }
 public Task<ServiceResponse<UsageDataCollection>> GetUsageDataAsync(int? skip = default(int?), int? top = default(int?), UsageDataFilter? filter = default(UsageDataFilter?), IEnumerable<string> targets = null)
 {
     throw new NotImplementedException();
 }