C# Class Project.Aop.Aspects.Aspect

Abstract class to wrap Castle Windsor's IInterceptor to only fire if the method or class is decorated with this attribute.
Inheritance: System.Attribute, IInterceptor
Exibir arquivo Open project: cardinal-solutions/AOPwithCastleWindsor

Public Methods

Method Description
Intercept ( IInvocation invocation ) : void
ProcessInvocation ( IInvocation invocation ) : void

Private Methods

Method Description
CanIntercept ( IInvocation invocation, Type type ) : bool

Determine if the intercepted class or method is decorated with the current attribute Classes decorated will process if decorated on ALL methods Methods decorated will process if decorate

Method Details

Intercept() public method

public Intercept ( IInvocation invocation ) : void
invocation IInvocation
return void

ProcessInvocation() public abstract method

public abstract ProcessInvocation ( IInvocation invocation ) : void
invocation IInvocation
return void