Exemple #1
0
        public void Disconnected(string msg = "Error Connection.")
        {
            //зачем этот запрос? Похоже он не заполняет My
            var login = _sessionClient.GetInfo(OCUnion.Transfer.ServerInfoType.Short).My.Login;

            _sessionClient.Disconnect();
        }
Exemple #2
0
        public void Disconnected(string msg = "Error Connection.")
        {
            var login = _sessionClient.GetInfo(false).My.Login;

            //DiscordBotServer.Helpers.Loger.Log("Chat Disconected :( " + login);
            _sessionClient.Disconnect();
            DisconnectedEvent?.Invoke(this, new StringWrapperEventArgument()
            {
                Message = login
            });
        }
Exemple #3
0
        private void updateClientData()
        {
            var serverInfo = _sessionClient.GetInfo(true);

            My   = serverInfo.My;
            Data = new ClientData(My.Login, _sessionClient);
            Data.ServetTimeDelta = serverInfo.ServerTime - DateTime.UtcNow;
        }
Exemple #4
0
        public void Disconnected(string msg = "Error Connection.")
        {
            var login = _sessionClient.GetInfo(OCUnion.Transfer.ServerInfoType.Short).My.Login;

            _sessionClient.Disconnect();
        }