I want to write a generic method which I register as a dll

It will execute a method which is based on the configuration settings in web.config file for each web application that uses this method

do I have to pass information from the web application in the method call like:

mydllmethod(ex, appname, setting1, setting2)

OR

is there a way to write the dll method generic so it will automatically read configuration information from the webapplication that instanciate it(it's web.config)...


I hope I make some sense...

kind regards
Henrik