Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I was wondering how other folks handle a configuration file dependancy in libraries you have created. My case in point is that I have a basic data layer that checkec configuration.configsettings.appsettings... for a specific key in the appsettings section of the configuration file. Now, since I developed this, I know that I need to have this key available in the appsettings section of my config file, but how can I alert other developers of that fact? Create a specific exception? Include code that creates a configuration file with the needed key?
  • *Gurus*
Posted

You should provide documentation both inside (for Intellisense and the object browser) and externally (in a compiled help format, such as HTML Help). In addition, provide sample applications that the developers can look at.

 

Most importantly, make sure that your assembly fails gracefully if the key isn't found. Catch the error, and rethrow it with a decent description and a link to more information.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...