Custom Rule Action in Outlook
Solution 1:
It is not possible to implement a custom action using pure .NET code. You have create a native DLL. But do you really need it? I assure you, that implementing and supporting the custom action is a pretty tricky challenge.
I suggest you to create a VBA script and use "run a script" Rule Wizard action instead.