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: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
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