I have a asp.net web application and it has few application events; say for example - Create User. One of my clients want a notification when a new user is created. So I have a dll specific to that client where I can put the logic for sending notification by registering to the application event onCreateUser.
Now I would like to know is there a better and generic way so that by just replacing this dll, for a different client, I can do something else instead of sending notification. Or by simply removing the dll I can turn this behavior off.
Edit: I know it is possible to do this by dynamically loading dlls applying reflection using Attributes just like PreApplicationStartMethodAttribute or using Interface and so on. But wanted to make sure I am not reinventing the wheel.