Example #1
0
        public async Task AddPackageAsync(
            PackageViewModel packageViewModel,
            CancellationToken cancellationToken)
        {
            if (packageViewModel == null)
            {
                throw new ArgumentNullException(nameof(packageViewModel));
            }

            await clientSession.PackageManager.InstallAsync(
                InteractivePackageDescription.FromPackageViewModel(packageViewModel),
                cancellationToken);
        }
Example #2
0
        public async Task AddPackageAsync(
            PackageViewModel packageViewModel,
            CancellationToken cancellationToken)
        {
            if (packageViewModel == null)
            {
                throw new ArgumentNullException(nameof(packageViewModel));
            }

            await clientSession.InstallPackageAsync(
                packageViewModel,
                cancellationToken);
        }