B
Brian
I have an application that is responsible for retrieving data from a variety
of remote sites using all sorts of different protocols. e.g. email, web
service, ftp, screen scraping etc. I want to convert the app.config file from
having tons of settings in the appSettings section of the file and have a
section for each of the methods/locations I need to access. However, I don't
really want to have different sections for email, ftp etc. I want to be able
to have one common section type that has enough information for me to know
which class to invoke to do the work, then I want to be able to pass that
class an xml fragment that would vary from protocol to protocol etc. and let
it configure itself without accessing the app.config file directly and
without the higher level portion having to know what the various xml child
fragments mean.
the problem is I don't know if it is possible to easily configure the thing
so that i can use the system.configuration calls to retrieve xml fragments as
opposed to objects or is the only way to directly suck up the app.config as
an xml document myself and not use the system.configuration stuff?
Any suggestions would be appreciated.
of remote sites using all sorts of different protocols. e.g. email, web
service, ftp, screen scraping etc. I want to convert the app.config file from
having tons of settings in the appSettings section of the file and have a
section for each of the methods/locations I need to access. However, I don't
really want to have different sections for email, ftp etc. I want to be able
to have one common section type that has enough information for me to know
which class to invoke to do the work, then I want to be able to pass that
class an xml fragment that would vary from protocol to protocol etc. and let
it configure itself without accessing the app.config file directly and
without the higher level portion having to know what the various xml child
fragments mean.
the problem is I don't know if it is possible to easily configure the thing
so that i can use the system.configuration calls to retrieve xml fragments as
opposed to objects or is the only way to directly suck up the app.config as
an xml document myself and not use the system.configuration stuff?
Any suggestions would be appreciated.