Configuration File For A Class Library


C

C.

Hey,

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.

Regards,

Chris
 
Ad

Advertisements

S

sloan

Here is one take:
http://blogs.msdn.com/nickmalik/archive/2004/11/25/270420.aspx

But if you want to do some searching................I remember once an
article I saw on eggheadcafe.com........I 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"
things.

It ~~might be in the source code of this (totally unrelated) article:
http://www.eggheadcafe.com/articles/20041204.asp
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

Top