Class InterceptorAggregator<TInterface, TTarget>
Aggregates TTarget
(class or interface) aspects to reduce the number of interceptors to be built.
Inheritance
System.Object
InterceptorAggregator<TInterface, TTarget>
Namespace: Solti.Utils.DI.Internals
Assembly: Solti.Utils.DI.dll
Syntax
public class InterceptorAggregator<TInterface, TTarget> : InterfaceInterceptor<TInterface, TTarget> where TInterface : class where TTarget : class, TInterface
Type Parameters
Name | Description |
---|---|
TInterface | |
TTarget |
Constructors
InterceptorAggregator(TTarget, IInterfaceInterceptor[])
Creates a new InterceptorAggregator<TInterface, TTarget> instance.
Declaration
public InterceptorAggregator(TTarget target, params IInterfaceInterceptor[] interceptors)
Parameters
Type | Name | Description |
---|---|---|
TTarget | target | |
IInterfaceInterceptor[] | interceptors |
Methods
Invoke(InvocationContext)
Dispatches the invocation to the corresponding aspects
Declaration
public sealed override object Invoke(InvocationContext context)
Parameters
Type | Name | Description |
---|---|---|
InvocationContext | context |
Returns
Type | Description |
---|---|
System.Object |