Exemple #1
0
 public static string GetMSSQLConnectionFromSM()
 {
     Console.WriteLine("GetMSSQLConnectionString Called");
     if (currentMSSQL_CS == "")
     {
         string rawCS           = GetSecret("testdb1");
         DB_CS  currentCSObject = JsonConvert.DeserializeObject <DB_CS>(rawCS);
         currentMSSQL_CS = $"Data Source={currentCSObject.host};User ID={currentCSObject.username};Password={currentCSObject.password}";
     }
     return(currentMSSQL_CS);
 }
Exemple #2
0
 public static string GetMSSQLConnectionString()
 {
     Console.WriteLine("GetMSSQLConnectionString Called");
     if (currentMSSQL_CS == "")
     {
         DB_CS currentCSObject = new DB_CS();
         currentCSObject.host     = "{server address}";
         currentCSObject.username = "******";
         currentCSObject.password = "******";
         currentMSSQL_CS          = $"Data Source={currentCSObject.host};User ID={currentCSObject.username};Password={currentCSObject.password}";
     }
     return(currentMSSQL_CS);
 }