Beispiel #1
0
                public void Close()
                {
                    if (clientToProxy != null || proxyToServer != null)
                    {
                        try
                        {
                            clientToProxy.Close();
                        }
                        catch { }

                        try
                        {
                            proxyToServer.Close();
                        }
                        catch { }

                        clientToProxy = null;
                        proxyToServer = null;

                        proxyServer.RemoveSession(this);
                    }
                }