Exemplo n.º 1
0
 internal void ReportCafeAuthMessage(string message)
 {
     try
     {
         using (LogDBDataContext logDBDataContext = new LogDBDataContext())
         {
             logDBDataContext.AddLoginLedger(new long?(this.JournalID), this.NexonID_forLog, this.SessionNo.ToString(), message);
         }
     }
     catch (Exception ex)
     {
         Log <CafeAuth> .Logger.Error("Error while Making Logs.", ex);
     }
 }
Exemplo n.º 2
0
        private static long AddLoginJournal()
        {
            long result = -1L;

            try
            {
                using (LogDBDataContext logDBDataContext = new LogDBDataContext())
                {
                    long?num = new long?(-1L);
                    logDBDataContext.AddLoginJournal(ref num);
                    result = num.Value;
                }
            }
            catch (Exception ex)
            {
                Log <CafeAuth> .Logger.Error(ex);
            }
            return(result);
        }
Exemplo n.º 3
0
        private static void AddCafeAuthServiceLog(long journalID, string str1, string str2, string str3)
        {
            string text = "";

            if (str1.Length > 30)
            {
                if (text.Length > 0)
                {
                    text += ", ";
                }
                text += "str1";
            }
            if (str2.Length > 20)
            {
                if (text.Length > 0)
                {
                    text += ", ";
                }
                text += "str2";
            }
            if (str3.Length > 30)
            {
                if (text.Length > 0)
                {
                    text += ", ";
                }
                text += "str3";
            }
            if (text.Length > 0)
            {
                throw new ArgumentException("Too long argument(s) is specified to AddCafeAuthServiceLog.", text);
            }
            using (LogDBDataContext logDBDataContext = new LogDBDataContext())
            {
                logDBDataContext.AddLoginLedger(new long?(journalID), str1, str2, str3);
            }
        }
Exemplo n.º 4
0
 internal void SetLoginInformation(int nexonSN, string nexonID, string characterID, IPAddress localAddress, IPAddress remoteAddress, bool canTry, bool isTrial, MachineID machineID, int gameRoomClient, byte channelCode)
 {
     if (FeatureMatrix.IsEnable("NaverChanneling"))
     {
         StringBuilder stringBuilder = new StringBuilder();
         stringBuilder.AppendFormat("{0};{1}", channelCode, nexonID);
         this.NexonID = stringBuilder.ToString();
     }
     else
     {
         this.NexonID = nexonID;
     }
     this.NexonSN        = nexonSN;
     this.CharacterID    = characterID;
     this.LocalAddress   = localAddress;
     this.RemoteAddress  = remoteAddress;
     this.CanTry         = canTry;
     this.IsTrial        = isTrial;
     this.MID            = machineID;
     this.GameRoomClient = gameRoomClient;
     this.SessionNo      = -1L;
     this.NexonID_forLog = nexonID;
     try
     {
         using (LogDBDataContext logDBDataContext = new LogDBDataContext())
         {
             long?num = new long?(-1L);
             logDBDataContext.AddLoginJournal(ref num);
             this.JournalID = num.Value;
         }
     }
     catch (Exception ex)
     {
         Log <CafeAuth> .Logger.Error(ex);
     }
 }