示例#1
0
        protected virtual IPermissionStateDeleted Map(IDeletePermission c)
        {
            var stateEventId          = new PermissionStateEventId(c.PermissionId, c.Version);
            IPermissionStateDeleted e = NewPermissionStateDeleted(stateEventId);

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
示例#2
0
        protected virtual IPermissionStateDeleted Map(IDeletePermission c)
        {
            var stateEventId          = new PermissionEventId(c.PermissionId, c.Version);
            IPermissionStateDeleted e = NewPermissionStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();


            return(e);
        }
示例#3
0
        protected virtual IPermissionStateDeleted Map(IDeletePermission c)
        {
            var stateEventId          = new PermissionStateEventId(c.PermissionId, c.Version);
            IPermissionStateDeleted e = NewPermissionStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
示例#4
0
        public virtual void Delete(IDeletePermission c)
        {
            IPermissionStateDeleted e = Map(c);

            Apply(e);
        }
示例#5
0
 public virtual void When(IDeletePermission c)
 {
     Update(c, ar => ar.Delete(c));
 }
 void IPermissionApplicationService.When(IDeletePermission c)
 {
     this.When((DeletePermissionDto)c);
 }