Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.5.1-preview-622" />

 IRegistrationRepository

public interface IRegistrationRepository
Represents a registration repository.
bool AddOrReMapRegistration(ServiceRegistration registration, Type serviceType)

Remaps all the registrations mapped to a service type.

bool AddOrUpdateRegistration(ServiceRegistration registration, Type serviceType)

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.