Esempio n. 1
0
        public async Task <IList <PackageWithTypeResult> > FindPackagesWithTypeAsync(string source, string name, int arity, CancellationToken cancellationToken)
        {
            var results = await _updateEngine.FindPackagesWithTypeAsync(
                source, name, arity, cancellationToken).ConfigureAwait(false);

            return(results);
        }
Esempio n. 2
0
        public Task <IList <PackageWithTypeResult> > FindPackagesWithTypeAsync(string source, string name, int arity, CancellationToken cancellationToken)
        {
            return(RunServiceAsync(async token =>
            {
                var results = await _updateEngine.FindPackagesWithTypeAsync(
                    source, name, arity, token).ConfigureAwait(false);

                return (IList <PackageWithTypeResult>)results;
            }, cancellationToken));
        }