Пример #1
0
        private void EndSession()
        {
            try
            {
                ValidacaoAcessoSoapClient acessoSoapClient = Settings.DefiniServer.Instance(LanguageDefault).SetConfigValidacaoAcessoService();
                acessoSoapClient.FinalizarSessao(Utility.Cript(_codigoSessao));
            }
            finally
            {
                SettingsServer.Default.AccessedUrl = "";
                SettingsServer.Default.Save();

                //_threadEndSession.Abort();
                //_threadEndSession = null;
            }
        }