Atomia.Web.Plugin.PublicOrder.Helpers.ActionTrail.OrderPageLogger.LogAudit C# (CSharp) Метод

LogAudit() публичный статический Метод

Logs the audit.
public static LogAudit ( string actionType, string message, string accountId, string username, string objectId, object>.Dictionary details ) : void
actionType string Type of the action.
message string The message.
accountId string The account identifier.
username string The username.
objectId string The object identifier.
details object>.Dictionary The details.
Результат void
        public static void LogAudit(
            string actionType,
            string message,
            string accountId,
            string username,
            string objectId,
            Dictionary<string, object> details)
        {
            if (HttpContext.Current == null)
            {
                return;
            }

            if (HttpContext.Current.Application["AuditLogPowerSwitch"] != null)
            {
                bool auditLogPowerSwitch;
                if (bool.TryParse(HttpContext.Current.Application["AuditLogPowerSwitch"].ToString().ToLower(), out auditLogPowerSwitch))
                {
                    if (auditLogPowerSwitch)
                    {
                        WebBaseAuditLogger.CreateAuditLog("Atomia Order Page", actionType, message, accountId, username, objectId, details);
                    }
                }
            }
        }