BIG TCP Overhaul and passcode start

- Switch to Serilog for console logging
- TCPSender is now persistent (let's hope) so can be used with passcode protected workspaces
- UDP connection works with passcodes just can't timeout
- Passcode prompt is automatic for workspaces that are password protected
This commit is contained in:
2020-06-05 23:53:16 -05:00
parent 4eb84939ca
commit 9899a6d33e
25 changed files with 245 additions and 191 deletions
@@ -1,4 +1,4 @@
using System;
using Serilog;
using System.Collections.ObjectModel;
using Acr.Settings;
@@ -13,7 +13,7 @@ namespace qController
if (qInstances == null)
{
Console.WriteLine("QSTORAGE - No qInstance exists creating one");
Log.Debug("QSTORAGE - No qInstance exists creating one");
qInstances = new ObservableCollection<QInstance>();
updateStorage();
}
@@ -54,7 +54,7 @@ namespace qController
public static bool Contains(string name, string address){
foreach (var item in qInstances)
{
//Console.WriteLine("Item name: " + item.name + " Found Name: " + name);
//Log.Debug("Item name: " + item.name + " Found Name: " + name);
if (item.address == address)
{
return true;