src/NuGetGallery/Services/ReservedNamespaceService.cs
/// <summary>
/// This method fetches the reserved namespace matching the prefix and removes the 
/// package registration entry from the reserved namespace, the provided package registration
/// should be an entry in the database. It is the caller's responsibility to commit the 
/// changes to the entity context.
/// </summary>
/// <param name="prefix">The prefix value of the reserved namespace to modify</param>
/// <param name="packageRegistration">The package registration entity to be removed.</param>
/// <returns>Awaitable task</returns>
This method fetches the reserved namespace matching the prefix and removes the
package registration entry from the reserved namespace, the provided package registration
should be an entry in the database. It is the caller's responsibility to commit the
changes to the entity context.
This method fetches the reserved namespace matching the prefix and removes the package registration entry from the reserved namespace the provided package registration should be an entry in the database . It is the caller ' s responsibility to commit the changes to the entity context .
public void RemovePackageRegistrationFromNamespace(ReservedNamespace reservedNamespace, PackageRegistration packageRegistration)
        {
            if (reservedNamespace == null)
            {
                throw new ArgumentNullException(nameof(reservedNamespace));
            }
            if (packageRegistration == null)
            {
                throw new ArgumentNullException(nameof(packageRegistration));
            }
            reservedNamespace.PackageRegistrations.Remove(packageRegistration);
            packageRegistration.ReservedNamespaces.Remove(reservedNamespace);
        }
public void RemovePackageRegistrationFromNamespace ( ReservedNamespace reservedNamespace , PackageRegistration packageRegistration ) { if ( reservedNamespace == null ) { throw new ArgumentNullException ( nameof ( reservedNamespace ) ) ; } if ( packageRegistration == null ) { throw new ArgumentNullException ( nameof ( packageRegistration ) ) ; } reservedNamespace . PackageRegistrations . Remove ( packageRegistration ) ; packageRegistration . ReservedNamespaces . Remove ( reservedNamespace ) ; }
This method fetches the reserved namespace matching the prefix and removes the
package registration entry from the reserved namespace, the provided package registration
should be an entry in the database.
This method fetches the reserved namespace matching the prefix and removes the package registration entry from the reserved namespace the provided package registration should be an entry in the database .
None
reservedNamespace
ReservedNamespace
packageRegistration
PackageRegistration
The package registration entity to be removed.
The package registration entity to be removed .
prefix
The prefix value of the reserved namespace to modify
The prefix value of the reserved namespace to modify