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
584a5aa258
Added references to statisfy AbstractService depenencies.
2016-03-28 11:11:48 -07:00
Sean McArdle
5211354cd7
Added AbstractService class to inherit from.
2016-03-28 11:10:01 -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
ccdf2fe14f
Added app manifest and set binary to reuire administrator.
2016-03-24 19:33:18 -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
95a991799a
Fixed but where it would not fully capture the adapter name if there is a space in it.
2016-03-24 19:05:21 -07:00
Sean McArdle
01957be40b
Added x86 build.
2016-03-24 19:04:20 -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
7179496bb7
Changed NetSh to Netsh to more closely relate to the netsh command.
2016-03-24 15:11:29 -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
855c0dc6ff
Added netsh helper functions for querying and changing interface state.
2016-03-23 22:03:50 -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