Пример #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();
     }
 }
Пример #2
0
 public string GetNightwatchDiscordToken() => MiscVar.GetValue("NightwatchDiscordToken");
Пример #3
0
 public string GetGlacierSecretKey() => MiscVar.GetValue("GlacierSecretKey");
Пример #4
0
 public string GetSteamBuildPassword() => MiscVar.GetValue("SteamBuildPassword");
Пример #5
0
 public string GetGithubHookKey() => MiscVar.GetValue("GithubHookKey");
Пример #6
0
 public string GetSteamWebApiKey() => MiscVar.GetValue("SteamWebApiKey");
Пример #7
0
 public string GetNightwatchPassword() => MiscVar.GetValue("NightwatchPassword");