Cedar.Framework.AuditTrail.Base.AuditLogEntry.AuditLogEntry C# (CSharp) Метод

AuditLogEntry() публичный Метод

public AuditLogEntry ( string functionName, string transactionId = null, string userid = null, string appVersion = null, System.DateTime logTime = null ) : System
functionName string
transactionId string
userid string
appVersion string
logTime System.DateTime
Результат System
        public AuditLogEntry(string functionName, string transactionId = null, string userid = null,
            string appVersion = null, DateTime? logTime = null)
        {
            FunctionName = functionName;
            TransactionId = (string.IsNullOrEmpty(transactionId)
                ? ApplicationContext.Current.TransactionId
                : transactionId);
            UserId = (string.IsNullOrEmpty(userid) ? ApplicationContext.Current.UserId : userid);
            AppVersion = (string.IsNullOrEmpty(appVersion) ? GetProjectAssemblyVersion() : appVersion);
            Items = new Collection<AuditLogEntryItem>();
            LogTime = (logTime.HasValue ? logTime.Value : TimeConverter.CurrentDateTime);
        }