コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //AppSettings
            string rootKey = ReconfigManager.AppSettings["root_key"];

            //ConnectionStrings
            ConnectionStringSettings connString = ReconfigManager.ConnectionStrings["sec_core"];
            var providerName = connString.ConnectionString;

            //Custom Sections
            string myKey = ReconfigManager.GetSection("MySection")["MyKey"];

            Response.Write(string.Format("root_key = '{0}';", rootKey));
            Response.Write("<br/>");
            Response.Write(string.Format("connString = '{0}';", connString));
            Response.Write("<br/>");
            Response.Write(string.Format("myKey = '{0}';", myKey));
        }
コード例 #2
0
 public void Should_Send_Notification()
 {
     ReconfigManager.AppSettings.Clear();
     ReconfigManager.GetSection("appSettings");
 }