Adding events to my web app, then allow others to extend and add subscribers to those events

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-04-23T17:51:51Z Indexed on 2010/04/23 17:53 UTC
Read the original article Hit count: 150

Filed under:
|

In a web application, I want to sprinkle events in places and then let others, who want to extend the functionality, add subscribers to those events.

So something like:

Users.PreUserUpdated();

Users.Update(user);

Users.OnUserUpdated();

If someone now wanted to subscribe to the pre or on user updated events, where would they do so? global.asax before application startup?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#