コード例 #1
0
 public EnvironmentSettings GetActiveEnviroment()
 {
     if (String.IsNullOrEmpty(ActiveEnvironmentKey) ||
         !Environments.ContainsKey(ActiveEnvironmentKey))
     {
         ActiveEnvironmentKey = Environments.First().Key;
         return(Environments.First().Value);
     }
     else
     {
         return(Environments[ActiveEnvironmentKey]);
     }
 }
コード例 #2
0
 private bool EnvironmentExists(string name)
 {
     return(Environments.ContainsKey(name));
 }