Esempio n. 1
0
        private bool ValidateSession(ulong accID, string nickname, IPAddress ip)
        {
            var channel = _authRemoteClient.CreateChannel <IAuthRemote>("IAuthRemote");

            if (channel == null)
            {
                return(false);
            }

            try
            {
                var res = channel.ValidateSession(nickname, accID, ip);
                _authRemoteClient.CloseChannel(channel);
                return(res);
            }
            catch (Exception)
            {
                _authRemoteClient.CloseChannel(channel);
                return(false);
            }
        }