Configuration File For A Class Library




I've created a .NET authentication component as a class library. It is
going to be exposed to COM and consumed by a number of different
applications. What I would like is to be able to configure it via an
XML file to set things like timeouts, emergency email contacts, etc...

Since the class library executes under the context of the calling
application, do I have any options, or will I need to roll my own
solution? I would love to be able to use the ConfigurationManager, but
it will look for the app.config or web.config of the calling app,
which is not what I want.






Here is one take:

But if you want to do some searching................I remember once an
article I saw on cannot remember anything
exact........just that Peter had discussed this.
(Sorry, I know searching an entire website is only slightly better than
searching the entire internet..........but I cannot remember any "key"

It ~~might be in the source code of this (totally unrelated) article:
But don't quote me, it's been a while.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question