示例#1
0
 public UserAuditEvent(string message, object source, UserAuditTypes type, Guid userID)
     : base(message, source, WebEventCodes.WebExtendedBase + (int)type)
 {
     this.Message = message;
     this.UserID = userID;
     this.UserAuditType = type;            
 }        
示例#2
0
 public static string Message(UserAuditTypes type)
 {
     switch (type)
     {
         case UserAuditTypes.UserLogin:
             return "User successfully logged in";
         case UserAuditTypes.UserSignup:
             return "User successfully signed up";
         case UserAuditTypes.UserLockedOut:
             return "User was locked out";
         case UserAuditTypes.UserEnrolled:
             return "User Enrolled to a new course";
         default:
             return "";
     }
 }