public void AuditLog(string doingWhat, string who, AuditLogCategory category = AuditLogCategory.Unspecified) {

			SysLog(doingWhat, who);

			var agentLoginData = new AgentLoginData(who);
			var entry = new AuditLogEntry(agentLoginData, doingWhat, category);

			Ctx.Save(entry);

		}
Example #2
0
        public AuditLogEntry(AgentLoginData agentLoginData, string action, AuditLogCategory category)
            : this()
        {
            ParamIs.NotNull(() => agentLoginData);
            ParamIs.NotNullOrEmpty(() => action);

            Action = action.Truncate(MaxActionLength);
            AgentName = agentLoginData.Name;
            Category = category;
            User = agentLoginData.User;
        }
		public void AuditLog(string doingWhat, AgentLoginData who, AuditLogCategory category = AuditLogCategory.Unspecified) {

			ParamIs.NotNull(() => who);

			SysLog(doingWhat, who.Name);

			var entry = new AuditLogEntry(who, doingWhat, category);

			Ctx.Save(entry);

		}
Example #4
0
		public void AuditLog(string doingWhat, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified) {
			SysLog(doingWhat, user != null ? user.Name : "Unknown");
		}
Example #5
0
		public void AuditLog(string doingWhat, string who, AuditLogCategory category = AuditLogCategory.Unspecified) {
			SysLog(doingWhat, who);
		}
Example #6
0
		public void AuditLog(string doingWhat, AgentLoginData who, AuditLogCategory category = AuditLogCategory.Unspecified) {
			ParamIs.NotNull(() => who);
			SysLog(doingWhat, who.Name);
		}
Example #7
0
 public void AuditLog(string doingWhat, string who, AuditLogCategory category = AuditLogCategory.Unspecified)
 {
     SysLog(doingWhat, who);
 }
Example #8
0
 public void AuditLog(string doingWhat, AgentLoginData who, AuditLogCategory category = AuditLogCategory.Unspecified)
 {
     ParamIs.NotNull(() => who);
     SysLog(doingWhat, who.Name);
 }
Example #9
0
		public void AuditLog(string doingWhat, string who, AuditLogCategory category = AuditLogCategory.Unspecified) {

			HandleTransaction(session => AuditLog(doingWhat, session, who, category));

		}
Example #10
0
 public void AuditLog(string doingWhat, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified)
 {
     SysLog(doingWhat, user != null ? user.Name : "Unknown");
 }
Example #11
0
        protected void AuditLog(string doingWhat, ISession session, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified)
        {
            ParamIs.NotNull(() => session);

            var agentLoginData = SessionHelper.CreateAgentLoginData(session, PermissionContext, user);

            SysLog(doingWhat, agentLoginData.Name);
            var entry = new AuditLogEntry(agentLoginData, doingWhat, category);

            session.Save(entry);
        }
Example #12
0
        protected void AuditLog(string doingWhat, ISession session, AgentLoginData who, AuditLogCategory category = AuditLogCategory.Unspecified)
        {
            ParamIs.NotNull(() => session);
            ParamIs.NotNull(() => who);

            SysLog(doingWhat, who.Name);

            var entry = new AuditLogEntry(who, doingWhat, category);

            session.Save(entry);
        }
Example #13
0
 protected Task AuditLogAsync(string doingWhat, IDatabaseContext <TEntity> session, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified)
 {
     return(session.AuditLogger.AuditLogAsync(doingWhat, user, category));
 }
Example #14
0
 protected void AuditLog(string doingWhat, IDatabaseContext <TEntity> session, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified)
 {
     session.AuditLogger.AuditLog(doingWhat, user, category);
 }
Example #15
0
 protected void AuditLog(string doingWhat, IDatabaseContext <TEntity> session, AgentLoginData who, AuditLogCategory category = AuditLogCategory.Unspecified)
 {
     session.AuditLogger.AuditLog(doingWhat, who, category);
 }
		public void AuditLog(string doingWhat, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified) {

			var agentLoginData = CreateAgentLoginData(Ctx, PermissionContext, user);
			SysLog(doingWhat, agentLoginData.Name);
			var entry = new AuditLogEntry(agentLoginData, doingWhat, category);

			Ctx.Save(entry);

		}