Exemple #1
0
        public async Task <IList <PackageWithAssemblyResult> > FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken)
        {
            var results = await _updateEngine.FindPackagesWithAssemblyAsync(
                source, assemblyName, cancellationToken).ConfigureAwait(false);

            return(results);
        }
Exemple #2
0
        public Task <IList <PackageWithAssemblyResult> > FindPackagesWithAssemblyAsync(string source, string assemblyName, CancellationToken cancellationToken)
        {
            return(RunServiceAsync(async token =>
            {
                var results = await _updateEngine.FindPackagesWithAssemblyAsync(
                    source, assemblyName, token).ConfigureAwait(false);

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