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(TypeInformation typeInfo, ResolutionContext resolutionContext);
IEnumerable<ServiceRegistration> GetRegistrationsOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext);
IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings();
bool ContainsRegistration(Type type, object name, bool includeOpenGenerics = true);
}
}