Commit Graph

197 Commits (master)

Author SHA1 Message Date
Sean McArdle 0375becd53 Updated README.md 2016-03-29 19:21:47 -07:00
Sean McArdle 0e7c0962e0 Cleanup usings. 2016-03-29 17:59:02 -07:00
Sean McArdle b4ee5ba74e Fixed copy/paste bug, did not want the filtered behavior. This was copied from elsewhere during refactoring. 2016-03-29 17:57:34 -07:00
Sean McArdle 5cf9b27f96 Fixed bug loading registry values for nic exclusion list. 2016-03-29 17:56:58 -07:00
Sean McArdle da556f71d8 Implementing NIC whitelist as registry configuration, currently fails reading configuration but creates keys/values on install. 2016-03-29 15:29:13 -07:00
Sean McArdle 36201c72cf Implementing abstract methods for reg key create/remove, and added service description. 2016-03-29 14:23:25 -07:00
Sean McArdle 151e022e3f Created abstract methods for creating and cleaning up registry keys related to service. 2016-03-29 14:22:50 -07:00
Sean McArdle 5f768806f9 Incorrect null check, returned null on success rather than failure. 2016-03-29 14:22:16 -07:00
Sean McArdle 80baf60e97 Date is now always displayed in default foreground color. 2016-03-29 13:54:30 -07:00
Sean McArdle 55f4a9f8ff Oops, that reg value doesn't mean what I thought it meant. 2016-03-29 13:54:08 -07:00
Sean McArdle 27d46da48a Null conditionals are amazing 2016-03-29 13:53:50 -07:00
Sean McArdle 3262b07660 Should log as Windows Events, needs testing. 2016-03-29 13:35:12 -07:00
Sean McArdle dfb8225925 Service pause-able. 2016-03-29 13:26:25 -07:00
Sean McArdle 4720ad3b3b Working through logging TODOs 2016-03-29 13:06:12 -07:00
Sean McArdle 3f9821e0ec Handle null on netsh return. 2016-03-29 12:55:15 -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 caaf238eb0 Removed source specific stuff. 2016-03-29 12:36:29 -07:00
Sean McArdle f3312f4987 Merge branch 'origin/servicizing' into servicizing
# Conflicts:
#	WifiSitter/Program.cs
#	WifiSitter/WifiSitter.cs
2016-03-28 13:51:46 -07:00
Sean McArdle 124ffab91a Ongoing work converting to service. 2016-03-28 13:45:53 -07:00
Sean McArdle 5afc411d76 Refactoring for service. 2016-03-28 13:28:12 -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 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 cdbe721406 Insert key stuck. 2016-03-24 20:29:55 -07:00
Sean McArdle 2c1b80bb70 Just being picky. 2016-03-24 20:26:55 -07:00
Sean McArdle 6723b8f3a9 Fixed some grammar/case inconsistency. 2016-03-24 20:24:10 -07:00
Sean McArdle 555b5a6c25 Added README. 2016-03-24 20:22:05 -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
Sean McArdle 53450d7a0b Initial commit 2016-03-23 14:01:23 -07:00