Click or drag to resize

AnyConcreteTypeNotAlreadyRegisteredSourceRegistrationsFor Method

Retrieve registrations for an unregistered service, to be used by the container.

Namespace:  Autofac.Features.ResolveAnything
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public IEnumerable<IComponentRegistration> RegistrationsFor(
	Service service,
	Func<Service, IEnumerable<IComponentRegistration>> registrationAccessor
)

Parameters

service
Type: Autofac.CoreService
The service that was requested.
registrationAccessor
Type: SystemFuncService, IEnumerableIComponentRegistration
A function that will return existing registrations for a service.

Return Value

Type: IEnumerableIComponentRegistration
Registrations providing the service.

Implements

IRegistrationSourceRegistrationsFor(Service, FuncService, IEnumerableIComponentRegistration)
See Also