Click or drag to resize

ResolvedParameterForKeyedTService Method

Construct a ResolvedParameter that will match parameters of type TService and resolve for those parameters an implementation registered with the key serviceKey.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static ResolvedParameter ForKeyed<TService>(
	Object serviceKey
)

Parameters

serviceKey
Type: SystemObject
The key of the matching service to resolve.

Type Parameters

TService
The type of the parameter to match.

Return Value

Type: ResolvedParameter
A configured ResolvedParameter instance.
See Also