예제 #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);
        }
예제 #2
0
        public async Task AddPackageAsync(
            PackageViewModel packageViewModel,
            CancellationToken cancellationToken)
        {
            if (packageViewModel == null)
            {
                throw new ArgumentNullException(nameof(packageViewModel));
            }

            await clientSession.InstallPackageAsync(
                packageViewModel,
                cancellationToken);
        }