Beispiel #1
0
        public Task <IReadOnlyList <T> > GetAll <T>(Uri uri, IDictionary <string, string> parameters, string accepts, IApiOptions options)
            where T : class
        {
            uri.ArgumentNotNull(nameof(uri));
            options.ArgumentNotNull(nameof(options));

            parameters = Pagination.Setup(parameters, options);

            return(pagination.GetAllPages(async() => await GetPage <T>(uri, parameters, accepts, options).ConfigureAwait(false), uri));
        }
        public Task <IReadOnlyList <GpgKey> > GetAllForCurrent(IApiOptions options)
        {
            options.ArgumentNotNull(nameof(options));

            return(ApiConnection.GetAll <GpgKey>(ApiUrls.GpgKeys(), options));
        }