private void StartAuction_Click(object sender, RoutedEventArgs e)
 {
     string biddingItem = BiddingItem.Text;
     Server = new Server(biddingItem, 1337);
     Thread serverThread = new Thread(Server.Start);
     serverThread.Start();
 }
Example #2
0
        private StreamWriter writer; // nu objekt data og ikke lokale - så de kan bruges på tværs af metoder

        #endregion Fields

        #region Constructors

        public ClientHandler(Server server, Socket clientSocket, BroadcastService broadcastService)
        {
            this.server = server;
            this.clientSocket = clientSocket;
            this.broadcastService = broadcastService;
        }