Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
     }
 }