Search This Blog

Monday, October 25, 2010

how to handle class lib init event handler

Programmer Question

I am trying to convert Java libs to c# libs. I am stuck at a place and could not find any solution via googling. The issue is in c# Class Lib i want to write assembly load/init event handler, is it possible as in Java it seems is?
In java the code is.



public class abc implements ServletContextListener {

public void contextInitialized(ServletContextEvent event) {
//do something
}

public void contextDestroyed(ServletContextEvent event) {
//do something
}
}


what would be its equivalent in c#?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails