Esempio n. 1
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);

            //Closing the client gracefully closes the connection and cleans up resources
            client.Close();
        }
Esempio n. 2
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);

            // Clean up proxy when Window closes
            client.Close();
        }