AOP for C# dotnet core 2.0, access method parameter values before method body runs
This is my method, I am trying to validate componentToSave (or access method parameter values) and throw an exception before method body even runs. public Component SaveComponent(Component componentToSave) { ... } I tried using PostSharp but it is not free and also there were other libraries that rely on AutoFac as IoC but in my current setup I am using dotnet core's built-in dependency injection. I tried NConcern and it relies on CNeptune and CNeptune itself relies on a .exe file for post-compile binding and I currently use Linux for both development and production so I cannot use it, even I