Click or drag to resize

DecoratorServiceChangeType Method

Return a new service of the same kind, but carrying newType as the ServiceType.

Namespace:  Autofac.Features.Decorators
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public Service ChangeType(
	Type newType
)

Parameters

newType
Type: SystemType
The new service type.

Return Value

Type: Service
A new service with the service type.

Implements

IServiceWithTypeChangeType(Type)
See Also