public virtual void When(IUserLoginStateRemoved e) { ThrowOnWrongEvent(e); this.Deleted = true; this.UpdatedBy = e.CreatedBy; this.UpdatedAt = e.CreatedAt; }
public virtual UserLoginStateRemovedDto ToUserLoginStateRemovedDto(IUserLoginStateRemoved e) { var dto = new UserLoginStateRemovedDto(); dto.UserLoginEventId = e.UserLoginEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.Version = e.Version; dto.CommandId = e.CommandId; return(dto); }
}// END Map(IMergePatch... //////////////////////////// protected virtual IUserLoginStateRemoved MapRemove(IRemoveUserLogin c, IUserCommand outerCommand, long version) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new UserLoginEventId(c.UserId, c.LoginKey, version); IUserLoginStateRemoved e = NewUserLoginStateRemoved(stateEventId); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(IRemove... ////////////////////////////
}// END Map(IMergePatch... //////////////////////////// protected virtual IUserLoginStateRemoved MapRemove(IRemoveUserLogin c, IUserCommand outerCommand, long version) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new UserLoginStateEventId(c.UserId, c.LoginKey, version); IUserLoginStateRemoved e = NewUserLoginStateRemoved(stateEventId); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(IRemove... ////////////////////////////
void IUserStateDeleted.AddUserLoginEvent(IUserLoginStateRemoved e) { this._userLoginEvents.AddUserLoginEvent(e); }
public virtual void AddUserLoginEvent(IUserLoginStateRemoved e) { ThrowOnInconsistentEventIds(e); this._userLoginEvents[e.StateEventId] = e; }
public void AddUserLoginEvent(IUserLoginStateRemoved e) { _innerStateEvents.Add((UserLoginStateRemovedDto)e); }
void IUserLoginState.When(IUserLoginStateRemoved e) { throw new NotSupportedException(); }