Пример #1
0
        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();
        }
Пример #2
0
 static async Task Main(string[] args)
 {
     //TraditionalServer.Start();      // Blocking
     await AsynchronousServer.Start();
 }