Пример #1
0
        public static void LogSSCTechActivityInfo(SSCTechInfo sSCTechInfo)
        {
            var user = AppNEnvConfig.GetUserName;
            using (SSCTechImp.CreateInstance())
            {
                using (var db = new SSCTechClientDbCntx())
                {
                    db.SSCTechActivityInfo.Add(new SSCTechActivityInfo
                    {
                        Host = string.Format("{0}[{1}]", AppNEnvConfig.GetMachineName, AppNEnvConfig.AppVersion),
                        User = user,
                        SurveyId = sSCTechInfo.SurveyId,
                        FAId = sSCTechInfo.FAId,
                        SSCTechInfo = sSCTechInfo.Serialize(),
                        TimeUtc = DateTime.UtcNow
                    });

                    db.SaveChanges();
                }
            }
        }
Пример #2
0
 public static void LogSSCTechActivityInfo(SSCTechInfo sSCTechInfo)
 {
     TechOperation.LogSSCTechActivityInfo(sSCTechInfo);
 }