public UserRegistrationService()
 {
     UnitOfWork    = new CoreUnitOfWork();
     UserBiz       = new UserBiz(UnitOfWork);
     MembershipBiz = new MembershipBiz(UnitOfWork);
     Logger        = new ExceptionLogBiz(UnitOfWork);
 }
예제 #2
0
 /// <summary>
 /// Log를 기록합니다. 
 /// </summary>
 /// <param name="bizType">BizType.Custom</param>
 /// <param name="message">메시지</param>
 /// <param name="messageDetail">메시지상세</param>
 /// <param name="throwEx">Exception발생 시 다시 Throw할것인지 여부</param>
 public static void LogException(string message, string messageDetail, bool throwEx)
 {
     try
     {
         using (ExceptionLogBiz biz = new ExceptionLogBiz())
         {
             biz.InsertLog(GetUserIp(), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), message, messageDetail);
         }
     }
     catch (Exception ex)
     {
         if (throwEx)
         {
             throw ex;
         }
     }
 }
예제 #3
0
 public LogService()
 {
     UnitOfWork      = new CoreUnitOfWork();
     ExceptionLogBiz = new ExceptionLogBiz(UnitOfWork);
 }