Esempio n. 1
0
 public static string GetSomeApi()
 {
     try
     {
         var apiUrl = Task.Run(async() =>
         {
             return(await SettingsUtility.GetApiUrl(ApiSettingsKeys.SomeApiKey));
         });
         if (apiUrl != null && !string.IsNullOrEmpty(apiUrl.Result))
         {
             return(apiUrl.Result);
         }
         throw new Exception("SomeApi configuration key not found, please check your configuration table");
     }
     catch (Exception) { throw; }
 }