static void Main(string[] args) { Console.WriteLine("Started @ " + DateTime.Now); if (args.Length == 0) { SCC_PRIVATE_ID = System.Environment.GetEnvironmentVariable("SCC_PRIVATE_ID"); SCC_PUBLIC_ID = System.Environment.GetEnvironmentVariable("SCC_PUBLIC_ID"); SCC_SQL_CON = System.Environment.GetEnvironmentVariable("SCC_SQL_CON"); SCC_REDIS_HOST = System.Environment.GetEnvironmentVariable("SCC_REDIS_HOST"); SCC_REDIS_PASS = System.Environment.GetEnvironmentVariable("SCC_REDIS_PASS"); string sPort = System.Environment.GetEnvironmentVariable("SCC_REDIS_PORT"); if (!int.TryParse(sPort, out SCC_REDIS_PORT)) { SCC_REDIS_PORT = 6379; } } else { SCC_PRIVATE_ID = GetParameterValueByNameFromArgs("PRV", args); SCC_PUBLIC_ID = GetParameterValueByNameFromArgs("PUB", args); SCC_SQL_CON = GetParameterValueByNameFromArgs("SSC", args); SCC_REDIS_HOST = GetParameterValueByNameFromArgs("SRH", args); SCC_REDIS_PASS = GetParameterValueByNameFromArgs("SRP", args); string sPort = GetParameterValueByNameFromArgs("P", args); if (!int.TryParse(sPort, out SCC_REDIS_PORT)) { SCC_REDIS_PORT = 6379; } } SCCManager oSCCManager = new SCCManager(); oSCCManager.ExecuteStateMananger(); Console.WriteLine("DONE at " + DateTime.Now); //Console.ReadLine(); //TODO:Do things with stuff }
public AccountController() { this._oSCCManager = new SCCManager(); }
public ChangeController() { this._oSCCManager = new SCCManager(); }