RDN-18
1

Move all references of ConfigurationManager.AppSettings

Scott on 4/29/2015 3:24 PM

Scott on 9/13/2015 7:31 PM

%
(hrs)
Logged

0 (hrs)


 Description

I want to move away from ConfigurationManager.AppSettings[""] being in the code.  So I want to move all these references to the LibraryConfig.cs file.

Anywhere there is a reference to ConfigurationManager.AppSettings, a new property either needs to be created or a current property used.

  1. Find all references to AppSettings["ANYVALUE"]
  2. Put the value in RDN.Library.Classes.Config.LibraryConfig.cs
  3. Replace the reference for AppSettings["ANYVALUE"] with the LibraryConfig.cs value.

 To get you started, the first value has already been added to LibraryConfig.  As you can see by checking its references, its used in two places through out the site.

This needs to be done for the following RDN projects.

RDN

RDN.Api

RDN.League

RDN.Raspberry

RDN.Shops

RDN.TransactionHandler

 

Skip Navigation Links
 

Pradeep Monday, May 25, 2015 7:35 AM #

Changes made into RDN.Library and other required files. please have a look into latest checked in version and confirm if any things missing.

Thanks

Pradeep

 

Scott Saturday, May 23, 2015 3:24 PM #

Hey Pradeep, good job so far.

  1. Please remove the commented out code.  No need to keep commented code created by this checkin.
  2. Seems like you missed a spot on Global.Asax of RDN.Shops
  3. Seems like you missed about 15 spots in RDN.Library.  Thats my fault though for not listing RDN.Library as a project it should be pulled out of.

I did just a basic search for Appsettings[" and found a few places that were missed.  Please review.

Otherwise, it looks pretty good!

 


Powered by BugNET 1.6.339.0