Esempio n. 1
0
        protected void OutputByRegion(UserAccountItem userItem)
        {
            lock (region)
            {
                string s = userItem.ToString();
                if ((null != userItem))
                {
                    StreamWriter sw = null;
                    if (TextHelper.IsContains(s, "(US)"))
                    {
                        sw = this.GetStream(SUCCEED_US);
                    }
                    else if (TextHelper.IsContains(s, "(EU)"))
                    {
                        sw = this.GetStream(SUCCEED_EU);
                    }

                    if (sw == null)
                    {
                        LogManager.Error("Account output US/EU account failed,that's other country account!");
                        return;
                    }

                    this.Output(s, sw);
                }
            }
        }
Esempio n. 2
0
        public virtual void Output(UserAccountItem userItem)
        {
            lock (output)
            {
                if ((null != userItem))
                {
                    BattleDBHelper.InsertHistory(userItem);
                    BattleDBHelper.InsertQueriedItems(userItem);

                    StreamWriter sw      = GetStreamWriter(userItem);
                    string       content = userItem.ToString();
                    this.Output(content, sw);

                    this.WriteRawData(userItem);
                    this.OutputByRegion(userItem);
                }
            }
        }