Click or drag to resize

DecoratorService Constructor

Initializes a new instance of the DecoratorService class.

Namespace:  Autofac.Features.Decorators
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public DecoratorService(
	Type serviceType,
	Func<IDecoratorContext, bool> condition = null
)

Parameters

serviceType
Type: SystemType
The service type for the decorator.
condition (Optional)
Type: SystemFuncIDecoratorContext, Boolean
The condition that must be met for the decorator to be applied.
See Also