Stashbox by Peter Csajtai

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

 IRegistrationRepository

public interface IRegistrationRepository
Represents a registration repository.
using Stashbox.Resolution; using System; using System.Collections.Generic; namespace Stashbox.Registration { public interface IRegistrationRepository { bool AddOrUpdateRegistration(ServiceRegistration registration, Type serviceType); bool AddOrReMapRegistration(ServiceRegistration registration, Type serviceType); ServiceRegistration GetRegistrationOrDefault(Type type, ResolutionContext resolutionContext, object name = null); ServiceRegistration GetRegistrationOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext); IEnumerable<ServiceRegistration> GetRegistrationsOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext); IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings(); bool ContainsRegistration(Type type, object name); } }