Beispiel #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);
     }
 }
Beispiel #2
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);
            }
        }