-
Notifications
You must be signed in to change notification settings - Fork 18
Home
AOP - Method and property interception in C#
Passing Parameters to a running application in WPF
Cauldron.Interception.Fody is a Fody add-in that is itself using "scripts" to extend its features. This add-in rely heavily on Cauldron.Cecilator which is itself a wrapper of Mono.Cecil.
The interceptors can be used in NET45, but the weaver still requires an installed NET461. Since the weaver itself is not part of the project, this will not affect the project's target framework version.
Cauldron.Interception.Fody offers the following features:
The following weaver/interceptor are available as predefined nuget packages.
- Method Interception
- Method Interception without try-catch-finally
- Property Interception
- Field Interception
- Constructor Interception
- InterceptionRuleAttribute
- InterceptorOptionsAttribute
- ISyncRoot
- IPropertyInterceptorInitialize
- IMethodInterceptorOnExit
- AssignMethodAttribute
- ExceptionLoggerAttribute
- ExceptionToEventLogAttribute
- ExecutionTimeAttribute
- PerformanceLoggerAttribute
- PropertyOnSetAttribute
- RegistryAttribute
- RegisterChildrenAttribute
- Activator interceptors
- WPF interceptors
- XAML/BAML resource interceptors
The activator is a simple and easy to use dependency injection. It is based on attributes and does not require any configuration files. It also supports static methods as component constructor.