Click or drag to resize

ViewRegistrationSourceRegistrationsFor Method

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

Namespace:  Autofac.Integration.Mvc
Assembly:  Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax
public IEnumerable<IComponentRegistration> RegistrationsFor(
	Service service,
	Func<Service, IEnumerable<ServiceRegistration>> registrationAccessor
)

Parameters

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

Return Value

Type: IEnumerableIComponentRegistration
Registrations providing the service.

Implements

IRegistrationSourceRegistrationsFor(Service, FuncService, IEnumerableServiceRegistration)
See Also