Click or drag to resize

ComponentRegistrationExtensionsMatchingLifetimeScopeTags Method

For components registered instance-per-matching-lifetime-scope, retrieves the set of lifetime scope tags to match.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
public static IEnumerable<Object> MatchingLifetimeScopeTags(
	this IComponentRegistration registration


Type: Autofac.CoreIComponentRegistration
The IComponentRegistration to query for matching lifetime scope tags.

Return Value

Type: IEnumerableObject
If the component is registered instance-per-matching-lifetime-scope, this method returns the set of matching lifetime scope tags. If the component is singleton, instance-per-scope, instance-per-dependency, or otherwise not an instance-per-matching-lifetime-scope component, this method returns an empty enumeration.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IComponentRegistration. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also