DecoratorService Constructor |
Namespace:
Autofac.Features.Decorators
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public DecoratorService(
Type serviceType,
Func<IDecoratorContext, bool> condition = null
)
Public Sub New (
serviceType As Type,
Optional condition As Func(Of IDecoratorContext, Boolean) = Nothing
)
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