Stashbox by Peter Csajtai

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

 IRegistrationRepository

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