Click or drag to resize

IComponentRegistryServicesTryGetRegistration Method

Attempts to find a default registration for the specified service.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
bool TryGetRegistration(
	Service service,
	out IComponentRegistration registration
)

Parameters

service
Type: Autofac.CoreService
The service to look up.
registration
Type: Autofac.CoreIComponentRegistration
The default registration for the service.

Return Value

Type: Boolean
True if a registration exists.
See Also