SimplyAOP is a .NET library (.NET Standard 2.0+) which allows to use AOP concepts in a simple and straightforward way.
It doesn't use dynamic proxy to accomplish that. Instead the AOP target must invoke a specific method (Advice(...)) on the AspectWeaver to allow for aspects to kick in.
So SimplyAOP doesn't need to create the instance of the target class so it can be used were instance creation is handled externally (for example by WCF).
Install-Package SimplyAOP -Version 0.3.0
dotnet add package SimplyAOP --version 0.3.0
<PackageReference Include="SimplyAOP" Version="0.3.0" />
paket add SimplyAOP --version 0.3.0
- New example project using IoC
-- Found under `SimplyAOP.IoCExample`
- Advices now can skip target method call
-- Example use see `ResultCacheAdvice` in Example
- `Invocation` now includes parameter and result
-- Getting and setting parameter / result is now easier (no (TResult)(object) cast necessary)
-- Changed `IBeforeAdvice` and `IAfterAdvice` accordingly
- Setting exception to null in `AfterThrowing()` now leads to InvalidOperationException
- No dependencies.
This package is not used by any popular GitHub repositories.