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