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); }
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); }
public void AuditLog(string doingWhat, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified) { SysLog(doingWhat, user != null ? user.Name : "Unknown"); }
public void AuditLog(string doingWhat, string who, AuditLogCategory category = AuditLogCategory.Unspecified) { SysLog(doingWhat, who); }
public void AuditLog(string doingWhat, AgentLoginData who, AuditLogCategory category = AuditLogCategory.Unspecified) { ParamIs.NotNull(() => who); SysLog(doingWhat, who.Name); }
public void AuditLog(string doingWhat, string who, AuditLogCategory category = AuditLogCategory.Unspecified) { HandleTransaction(session => AuditLog(doingWhat, session, who, category)); }
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); }
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); }
protected Task AuditLogAsync(string doingWhat, IDatabaseContext <TEntity> session, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified) { return(session.AuditLogger.AuditLogAsync(doingWhat, user, category)); }
protected void AuditLog(string doingWhat, IDatabaseContext <TEntity> session, User user = null, AuditLogCategory category = AuditLogCategory.Unspecified) { session.AuditLogger.AuditLog(doingWhat, user, category); }
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); }