Todo : Fix format

RestService : Fix connection if first connection fail
BL : Fix Update/Delete return value
This commit is contained in:
2019-03-28 00:23:44 +01:00
parent 8b0820ece4
commit b8d49cea69
5 changed files with 70 additions and 19 deletions

View File

@@ -23,7 +23,15 @@ namespace LaDOSE.DiscordBot.Service
public WebService(Uri uri,string user,string password)
{
restService = new RestService();
restService.Connect(uri,user,password);
try
{
restService.Connect(uri, user, password);
}
catch (Exception)
{
Console.WriteLine("Unable to contact services");
}
}
private void CheckToken()