Click or drag to resize

IComponentRegistryTryGetServiceRegistration Method

Attempts to find a default service registration for the specified service.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
bool TryGetServiceRegistration(
	Service service,
	out ServiceRegistration serviceRegistration
)

Parameters

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

Return Value

Type: Boolean
True if a registration exists.
See Also