|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using Enterprise Libary 2.0 from a DLL ?Hi,
I would like to use features of the Enterprise Library, specifically the Configuration and Logging Application blocks, from a class library (i.e. a DLL, not an EXE). I have not used the Enterprise Library yet, but it appears that to use the Application Configuration Block, there needs to be metadata coded into the App.Config file (e.g. to define the storage location of the file containing the DLL's config settings). This is troublesome because I am writing what amounts to a 3rd party DLL and I don't know if the applications that will reference my DLL are going to use an App.config file, or there might be resistance to storing my DLL specific stuff into their App.config. The features of the Enterprise Library look great. But is there a way to use them from a DLL without storing the metadata into App.Config ? Thanks This might get you started down the right path.
This was a 1.1 thing. I haven't seen a 2.0 equivalent, but I haven't look either. You basically can "code up" a configuration file. http://channel9.msdn.com/wiki/default.aspx/Channel9.EnterpriseLibraryFAQ Configuration Application Block Q: How do I use a block without a configuration file? Show quote "Tom" <thomas_vic***@standardandpoors.com> wrote in message news:1159894123.020862.211560@b28g2000cwb.googlegroups.com... > Hi, > > I would like to use features of the Enterprise Library, specifically > the Configuration and Logging Application blocks, from a class library > (i.e. a DLL, not an EXE). I have not used the Enterprise Library yet, > but it appears that to use the Application Configuration Block, there > needs to be metadata coded into the App.Config file (e.g. to define the > storage location of the file containing the DLL's config settings). > This is troublesome because I am writing what amounts to a 3rd party > DLL and I don't know if the applications that will reference my DLL are > going to use an App.config file, or there might be resistance to > storing my DLL specific stuff into their App.config. > > The features of the Enterprise Library look great. But is there a way > to use them from a DLL without storing the metadata into App.Config ? > > Thanks > |
|||||||||||||||||||||||