public static void ClearAllDatabases()
 {
     mySensorsDb.RemoveAllNodesAndSensors();
     mySensorsMessagesDb.RemoveAllMessages();
     nodesDb.RemoveAllLinks();
     nodesDb.RemoveAllNodes();
     nodesDataDb.RemoveAllNodesData();
     usersDb.RemoveAllUsers();
 }
예제 #2
0
        public void RemoveAllNodesAndLinks()
        {
            lock (linksLock)
                links = new List <Link>();

            lock (nodesLock)
                nodes = new List <Node>();

            LogEngineInfo("All nodes and links have been removed.");

            nodesDb?.RemoveAllNodes();
            nodesDb?.RemoveAllLinks();
            dataDb?.RemoveAllNodesData();

            OnRemoveAllNodesAndLinks?.Invoke();
        }