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);
}
}