Exemplo n.º 1
0
 private static void StoreDbValue(string varName, string value)
 {
     using (var db = new ZkDataContext())
     {
         var entry = db.MiscVars.FirstOrDefault(x => x.VarName == varName);
         if (entry == null)
         {
             entry = new MiscVar() { VarName = varName };
             db.MiscVars.Add(entry);
         }
         entry.VarValue = value;
         db.SaveChanges();
     }
 }
Exemplo n.º 2
0
 public string GetNightwatchDiscordToken() => MiscVar.GetValue("NightwatchDiscordToken");
Exemplo n.º 3
0
 public string GetGlacierSecretKey() => MiscVar.GetValue("GlacierSecretKey");
Exemplo n.º 4
0
 public string GetSteamBuildPassword() => MiscVar.GetValue("SteamBuildPassword");
Exemplo n.º 5
0
 public string GetGithubHookKey() => MiscVar.GetValue("GithubHookKey");
Exemplo n.º 6
0
 public string GetSteamWebApiKey() => MiscVar.GetValue("SteamWebApiKey");
Exemplo n.º 7
0
 public string GetNightwatchPassword() => MiscVar.GetValue("NightwatchPassword");