From 4b0a733c5e9c8b9fba1a134abfa230a55210f34e Mon Sep 17 00:00:00 2001 From: dwkim Date: Wed, 2 Mar 2016 21:38:56 +0900 Subject: [PATCH] updated for deploy --- CBLoggers.cs | 2 +- DataObjects/globalVal.cs | 31 ++++++++++++++++--------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/CBLoggers.cs b/CBLoggers.cs index 73aeec4..f8ff475 100644 --- a/CBLoggers.cs +++ b/CBLoggers.cs @@ -18,7 +18,7 @@ using Microsoft.WindowsAzure.Storage.Queue; using Microsoft.WindowsAzure.Storage.RetryPolicies; -using System.Web.Configuration; +//using System.Web.Configuration; using Newtonsoft.Json; using CloudBread.globals; using Microsoft.Practices.TransientFaultHandling; diff --git a/DataObjects/globalVal.cs b/DataObjects/globalVal.cs index 4717d13..6c15d49 100644 --- a/DataObjects/globalVal.cs +++ b/DataObjects/globalVal.cs @@ -2,28 +2,29 @@ using System.Collections.Generic; using System.Linq; using System.Web; -using System.Web.Configuration; +//using System.Web.Configuration; +using System.Configuration; namespace CloudBread.globals { public static class globalVal { - public static string DBConnectionString = WebConfigurationManager.ConnectionStrings["CloudBreadDBConString"].ConnectionString; - public static string StorageConnectionString = WebConfigurationManager.ConnectionStrings["CloudBreadStorageConString"].ConnectionString; - public static string CloudBreadLoggerSetting = WebConfigurationManager.AppSettings["CloudBreadLoggerSetting"].ToString(); - public static string CloudBreadCryptSetting = WebConfigurationManager.AppSettings["CloudBreadCryptSetting"].ToString(); - public static int conRetryCount = int.Parse(WebConfigurationManager.AppSettings["CloudBreadconRetryCount"]); /// adding v2.0.0 - public static int conRetryFromSeconds = int.Parse(WebConfigurationManager.AppSettings["CloudBreadconRetryFromSeconds"]); /// adding v2.0.0 - public static string CloudBreadSocketKeyText = WebConfigurationManager.AppSettings["CloudBreadSocketKeyText"]; /// adding v2.0.0 - public static string CloudBreadSocketKeyIV = WebConfigurationManager.AppSettings["CloudBreadSocketKeyIV"]; /// adding v2.0.0 + public static string DBConnectionString = ConfigurationManager.ConnectionStrings["CloudBreadDBConString"].ConnectionString; + public static string StorageConnectionString = ConfigurationManager.ConnectionStrings["CloudBreadStorageConString"].ConnectionString; + public static string CloudBreadLoggerSetting = ConfigurationManager.AppSettings["CloudBreadLoggerSetting"].ToString(); + public static string CloudBreadCryptSetting = ConfigurationManager.AppSettings["CloudBreadCryptSetting"].ToString(); + public static int conRetryCount = int.Parse(ConfigurationManager.AppSettings["CloudBreadconRetryCount"]); /// adding v2.0.0 + public static int conRetryFromSeconds = int.Parse(ConfigurationManager.AppSettings["CloudBreadconRetryFromSeconds"]); /// adding v2.0.0 + public static string CloudBreadSocketKeyText = ConfigurationManager.AppSettings["CloudBreadSocketKeyText"]; /// adding v2.0.0 + public static string CloudBreadSocketKeyIV = ConfigurationManager.AppSettings["CloudBreadSocketKeyIV"]; /// adding v2.0.0 - public static string CloudBreadSocketRedisServer = WebConfigurationManager.AppSettings["CloudBreadSocketRedisServer"]; /// adding v2.0.0 - public static string CloudBreadRankRedisServer = WebConfigurationManager.AppSettings["CloudBreadRankRedisServer"]; /// adding v2.0.0 - public static string CloudBreadRankSortedSet = WebConfigurationManager.AppSettings["CloudBreadRankSortedSet"]; /// adding v2.0.0 - public static bool CloudBreadFillRedisRankSetOnStartup = bool.Parse(WebConfigurationManager.AppSettings["CloudBreadFillRedisRankSetOnStartup"]); /// adding v2.0.0 + public static string CloudBreadSocketRedisServer = ConfigurationManager.AppSettings["CloudBreadSocketRedisServer"]; /// adding v2.0.0 + public static string CloudBreadRankRedisServer = ConfigurationManager.AppSettings["CloudBreadRankRedisServer"]; /// adding v2.0.0 + public static string CloudBreadRankSortedSet = ConfigurationManager.AppSettings["CloudBreadRankSortedSet"]; /// adding v2.0.0 + public static bool CloudBreadFillRedisRankSetOnStartup = bool.Parse(ConfigurationManager.AppSettings["CloudBreadFillRedisRankSetOnStartup"]); /// adding v2.0.0 - public static string CloudBreadGameLogRedisServer = WebConfigurationManager.AppSettings["CloudBreadGameLogRedisServer"]; /// adding v2.0.0 - public static int CloudBreadGameLogExpTimeDays = int.Parse(WebConfigurationManager.AppSettings["CloudBreadGameLogExpTimeDays"]); /// adding v2.0.0 + public static string CloudBreadGameLogRedisServer = ConfigurationManager.AppSettings["CloudBreadGameLogRedisServer"]; /// adding v2.0.0 + public static int CloudBreadGameLogExpTimeDays = int.Parse(ConfigurationManager.AppSettings["CloudBreadGameLogExpTimeDays"]); /// adding v2.0.0