public void StopAll()
 {
     m_runningThread.Abort();
     m_runningThread = null;
     m_selenium.TeardownRunningDriver();
     m_selenium = null;
     StopRunning();
 }
        private static void LaunchRestreamChatOberver()
        {
            RamMemoryRegisterOfMessages  memory       = new RamMemoryRegisterOfMessages();
            SeleniumAccessToRestreamChat restreamChat = new SeleniumAccessToRestreamChat();

            restreamChat.OpenPage(ChatHackerConfiguration.Instance.GetRestreamChatURL());
            // memory.SetMaximumMessageSizeTo(ChatHackerConfiguration.Instance.MaximumMessageSize);
            Thread t = new Thread(new ThreadStart(CheckForNewMessages));

            m_instanceRunning = new SeleniumThreadRunning();
            m_instanceRunning.m_messagesInMemory     = memory;
            m_instanceRunning.m_selenium             = restreamChat;
            m_instanceRunning.m_runningThread        = t;
            m_instanceRunning.m_timeBetweenFrameInMs = ChatHackerConfiguration.Instance.GetTimeBetweenChatCheckRequrested();
            t.Start();
        }