/// <summary> /// Entry point for our programme /// /// (Business logic, code behind, models... /// ...whatever you kids are calling it these days) /// </summary> public Main() { client = new P2PClient(1043); miner = new Miner(client); try { Task.Run(() => client.Start()); Task.Run(() => miner.Start()); } catch (Exception ex) { } }