Пример #1
0
 private void stopServerButton_Click(object sender, EventArgs e)
 {
     server.StopServer();
 }
Пример #2
0
 private void UnsubscribeFromClientEventsAndStopServer()
 {
     server.ClientConnected -= Server_ClientConnected;
     server.MessageReceived -= Server_MessageReceived;
     server.StopServer();
 }