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