IRegistrationRepository
Represents a registration repository.
using Stashbox.Resolution;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace Stashbox.Registration
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface IRegistrationRepository
{
bool AddOrUpdateRegistration(ServiceRegistration registration, Type serviceType);
bool AddOrReMapRegistration(ServiceRegistration registration, Type serviceType);
[return: System.Runtime.CompilerServices.Nullable(2)]
ServiceRegistration GetRegistrationOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext);
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})]
IEnumerable<ServiceRegistration> GetRegistrationsOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext);
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
1,
0,
1,
1
})]
IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings();
bool ContainsRegistration(Type type, [System.Runtime.CompilerServices.Nullable(2)] object name, bool includeOpenGenerics = true);
}
}