Skip to content

Commit

Permalink
updated for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudBreadPaPa committed Mar 2, 2016
1 parent a536a26 commit 4b0a733
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CBLoggers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
31 changes: 16 additions & 15 deletions DataObjects/globalVal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down

0 comments on commit 4b0a733

Please sign in to comment.