Commit Graph

18 Commits (307a31714add6058a6225b2bd234ee92465ba9bb)

Author SHA1 Message Date
Sean McArdle 0e7c0962e0 Cleanup usings. 2016-03-29 17:59:02 -07:00
Sean McArdle 4c2470360f Main logic executes in a separate thread, now initialized via command line in the same way as service. 2016-03-29 12:37:26 -07:00
Sean McArdle 124ffab91a Ongoing work converting to service. 2016-03-28 13:45:53 -07:00
Sean McArdle 05e266b2b2 Refactored classes into individual files in preparation for servicizing, Program.cs could get cluttered. 2016-03-28 11:17:33 -07:00
Sean McArdle a4d1682b5e Added newline for clarity. 2016-03-28 10:50:12 -07:00
Sean McArdle fd5c42983c Getting Connected state from netsh now, OperationalStatus doesn't tend to change when release IP address. 2016-03-28 10:44:08 -07:00
Sean McArdle 33a4fe841d Now ignoring VirtualBox interface. Moved release IP call and checks interface state afterwards to catch true operational state. 2016-03-28 09:55:29 -07:00
Sean McArdle 1fe08a0d2d Ignoring VirtualBox host adapter 2016-03-25 15:35:32 -07:00
Sean McArdle a5203a167e Fixed bug where _checkTick timer event was handled and the wrong function
call was used to verify the existance of new NICs so if there is a
disabled adapter it always reports that the NIC set has changed.
2016-03-25 10:56:16 -07:00
Sean McArdle 63c18f705a Console logging now done with LogLine() method so color can be set in a single function call rather than 3 lines. 2016-03-25 10:55:49 -07:00
Sean McArdle f827fd6f8d Moved Enable/Disable logic to the NIC itself for better state tracking. 2016-03-25 10:10:41 -07:00
Sean McArdle 16ef352103 Removed some unproductive comments. Ignore MS Wifi Direct adapter. 2016-03-24 20:09:57 -07:00
Sean McArdle 61dc889bd7 Added TODO tasks for logging.
Removed the method which enables nics, this logic is inline to match the
inline disabling.
Re-enabled the tick timer which checks for new adapters, increased to 20
seconds and changed the frequency of forced GC, now happens every 20 * 200
seconds (66.6 minutes).
2016-03-24 19:19:53 -07:00
Sean McArdle 6703cc2a51 Added timestamps to console logging and unified some formatting. 2016-03-24 19:06:12 -07:00
Sean McArdle 5081503906 Massive refactor with the addition of the UberNic class.
This is done to associated netsh and NetworkInferface information,
since the NetworkInterface type doesn't reflect Enabled/Disabled status.
2016-03-24 15:12:24 -07:00
Sean McArdle bc8acaf7fc Refactored state initialization into private method,
added checks for disabled adaptors that System.Net can't see,
now using disable/enable functions from netsh.
2016-03-23 22:05:20 -07:00
Sean McArdle 0ea1c0b795 Initial check rules out tunnel and loopback. Periodic checks of wifi to see if adapters have been disconnected or newly connected. 2016-03-23 14:54:11 -07:00
Sean McArdle f1a66eae31 WifiSitter initial code, need disable/enable code. 2016-03-23 14:01:55 -07:00