Beispiel #1
0
        /// <summary>
        /// Bulids the app exception global log.
        /// </summary>
        /// <param name="trackId">The track id.</param>
        /// <param name="appex">The appex.</param>
        /// <returns>GlobalLog.</returns>
        public GlobalLog BulidAppExceptionGlobalLog(TrackID trackId, AppException appex)
        {
            GlobalLog log = new GlobalLog()
            {
                CurrentTrackID = trackId,
                AppException = appex,
                LogType = LogType.AppExceptionLog,
                TimePoint = DateTime.Now,
            };

            return log;
        }
Beispiel #2
0
 /// <summary>
 /// Gets the instance.
 /// </summary>
 /// <param name="loginName">Name of the login.</param>
 /// <returns>TrackID.</returns>
 public static TrackID GetInstance(string loginName)
 {
     TrackID trackID = new TrackID(loginName);
     CurrentTrackID = trackID;
     return trackID;
 }