Exemplo n.º 1
0
        public void HandleResponce(IObject obj)
        {
            var message = obj.Cast <TBadServerSalt>();

            Log.Info($"Bad server sault detected! message id = {message.BadMsgId} ");

            ClientSettings.Session.Salt = message.NewServerSalt;

            ConfirmationRecieveService.RequestWithException(message.BadMsgId, new BadServerSaltException());
        }
Exemplo n.º 2
0
        public byte[] HandleResponce(int code, BinaryReader reader)
        {
            var badMsgId    = reader.ReadUInt64();
            var badMsgSeqNo = reader.ReadInt32();
            var errorCode   = reader.ReadInt32();
            var newSalt     = reader.ReadUInt64();

            Log.Info($"Bad server sault detected! message id = {badMsgId} ");

            ClientSettings.Session.Salt = newSalt;

            ConfirmationRecieveService.RequestWithException(badMsgId, new BadServerSaltException());

            return(null);
        }