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