private void DeletePackageVersion(PackageSummary package, string subreason) { new DeletePackageVersionTask() { BackupStorage = BackupStorage, StorageAccount = StorageAccount, ConnectionString = ConnectionString, AuditOnly = AuditOnly, WhatIf = WhatIf, PackageId = package.Id, PackageVersion = package.Version, Reason = $"duplicate package versions ({subreason})" }.Execute(); }
private void DeletePackageVersion(PackageSummary package, string subreason) { new DeletePackageVersionTask() { BackupStorage = BackupStorage, StorageAccount = StorageAccount, ConnectionString = ConnectionString, AuditOnly = AuditOnly, WhatIf = WhatIf, PackageId = package.Id, PackageVersion = package.Version, Reason = String.Format("duplicate package versions ({0})", subreason) }.Execute(); }