Esempio n. 1
0
        public void Logout()
        {
            try
            {
                if (!FirstNgVersion.IsLessThan(ServerVersion))
                {
                    return;
                }

                ClientHelper.Logout(Client);
            }
            catch (Exception exception)
            {
                Log.Warn("Ignoring exception during disconnect", exception);
            }
        }
        internal void DeleteSession()
        {
            try
            {
                if (!FirstNgVersion.IsLessThan(ServerVersion))
                {
                    return;
                }

                var serviceClient = ServiceClients.FirstOrDefault().Value;

                if (serviceClient == null)
                {
                    return;
                }

                ClientHelper.Logout(serviceClient);
            }
            catch (Exception exception)
            {
                Log.Warn("Ignoring exception during disconnect", exception);
            }
        }