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); } }
public static void Logout() { if (null != tokenCore) { tokenCore.UnloadAccount(); tokenCore.Dispose(); tokenCore = null; } }
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()); }