static void Connect(string appKey) { try { client = new PingFMClient(appKey); } catch (Exception e) { Log.Error(ConnectionErrorMessage, e.Message); } }
public static bool TryConnect(string appKey) { PingFMClient test; try { test = new PingFMClient (appKey); test.UpdateServices (); Connect (appKey); } catch (Exception e) { Log.Error (ConnectionErrorMessage, e.Message); return false; } return true; }
public static bool TryConnect(string appKey) { PingFMClient test; try { test = new PingFMClient(appKey); test.UpdateServices(); Connect(appKey); } catch (Exception e) { Log.Error(ConnectionErrorMessage, e.Message); return(false); } return(true); }
static void Connect(string appKey) { try { client = new PingFMClient (appKey); } catch (Exception e) { Log.Error (ConnectionErrorMessage, e.Message); } }