Beispiel #1
0
 static void Connect(string appKey)
 {
     try {
         client = new PingFMClient(appKey);
     } catch (Exception e) {
         Log.Error(ConnectionErrorMessage, e.Message);
     }
 }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 static void Connect(string appKey)
 {
     try {
         client = new PingFMClient (appKey);
     } catch (Exception e) {
         Log.Error (ConnectionErrorMessage, e.Message);
     }
 }