public ServerWindow() { InitializeComponent(); // Starts method to read the server configuration from the xml file. // Creates a xml configuration file when it doesnt exist. ServerFunctions.ServerStartPreparation(); server = new AsynchronousServer(); this.DataContext = server; // Starts listening to client connections asynchronously in a new thread this.StartListeningToClients(); }
static async Task Main(string[] args) { //TraditionalServer.Start(); // Blocking await AsynchronousServer.Start(); }