Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.2.6-preview-592" />

 IRegistrationRepository

public interface IRegistrationRepository
Represents a registration repository.
void AddOrUpdateRegistration(ServiceRegistration 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.

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

Returns a registration.

Returns a registration.

Returns all registrations for a type.