Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.1.0-preview-533" />

 IRegistrationRepository

public interface IRegistrationRepository
Represents a registration repository.
void AddOrUpdateRegistration(IServiceRegistration registration, Type serviceType, bool remap, bool replace)

Adds or updates an element in the repository.

bool ContainsRegistration(Type type, object name)

Check a type exists with conditions.

Returns all registration mappings.

IServiceRegistration GetRegistrationOrDefault(Type type, ResolutionContext resolutionContext, object name = null)

Returns a registration.

Returns a registration.

Returns all registrations for a type.