Beispiel #1
0
 public static void obtenerCore()
 {
     try
     {
         if (tokenCore == null)
         {
             tokenCore = new TokenCore(PData, 5);
             isAlive = true;
         }
     }
     catch (Exception e)
     {
         Debug.WriteLine("Error al obtener la base de datos" + e.Message);
     }
 }
Beispiel #2
0
        public static void Logout()
        {
            if (null != tokenCore)
            {
                tokenCore.UnloadAccount();
                tokenCore.Dispose();
                tokenCore = null;
            }

        }
Beispiel #3
0
        public static void DropStorage()
        {
            try
            {
                if (tokenCore != null)
                {

                    tokenCore.Dispose();
                    tokenCore.DropStorage();
                    tokenCore = null;
                    isAlive = false;
                }

            }
            catch (Exception e)
            {
                Debug.WriteLine("Could not drop the storage: {0}", e);
            }
            Debug.WriteLine("TokenServices DropStorage - End " + DateTime.Now.ToLongTimeString());
        }