Ejemplo n.º 1
0
        protected override string GetUserName(object user)
        {
            var cat = CurrentEvent.GetEventCategory();

            if (cat == SysEventCategory.User)
            {
                var u = (AppUser)CurrentEvent.Data;
                return(u.UserName);
            }
            return(base.GetUserName(user));
        }
Ejemplo n.º 2
0
        protected override string GetUserId(object user)
        {
            var cat = CurrentEvent.GetEventCategory();

            if (cat == SysEventCategory.Issue)
            {
                var iss = (Issue)CurrentEvent.Data;
                return(iss?.UserId);
            }
            if (cat == SysEventCategory.User)
            {
                var u = (AppUser)CurrentEvent.Data;
                return(u.Id);
            }
            return(base.GetUserId(user));
        }