Пример #1
0
        protected virtual IUserLoginMvoStateCreated Map(ICreateUserLoginMvo c)
        {
            var stateEventId            = new UserLoginMvoEventId(c.UserLoginId, c.UserVersion);
            IUserLoginMvoStateCreated e = NewUserLoginMvoStateCreated(stateEventId);

            e.Version                  = c.Version;
            e.Active                   = c.Active;
            e.UserUserName             = c.UserUserName;
            e.UserAccessFailedCount    = c.UserAccessFailedCount;
            e.UserEmail                = c.UserEmail;
            e.UserEmailConfirmed       = c.UserEmailConfirmed;
            e.UserLockoutEnabled       = c.UserLockoutEnabled;
            e.UserLockoutEndDateUtc    = c.UserLockoutEndDateUtc;
            e.UserPasswordHash         = c.UserPasswordHash;
            e.UserPhoneNumber          = c.UserPhoneNumber;
            e.UserPhoneNumberConfirmed = c.UserPhoneNumberConfirmed;
            e.UserTwoFactorEnabled     = c.UserTwoFactorEnabled;
            e.UserSecurityStamp        = c.UserSecurityStamp;
            e.UserCreatedBy            = c.UserCreatedBy;
            e.UserCreatedAt            = c.UserCreatedAt;
            e.UserUpdatedBy            = c.UserUpdatedBy;
            e.UserUpdatedAt            = c.UserUpdatedAt;
            e.UserActive               = c.UserActive;
            e.UserDeleted              = c.UserDeleted;
            e.CommandId                = c.CommandId;


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


            return(e);
        }
Пример #2
0
        protected UserLoginMvoStateDeleted NewUserLoginMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new UserLoginMvoEventId(_state.UserLoginId, version);
            var e            = NewUserLoginMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
Пример #3
0
        protected virtual IUserLoginMvoStateDeleted Map(IDeleteUserLoginMvo c)
        {
            var stateEventId            = new UserLoginMvoEventId(c.UserLoginId, c.UserVersion);
            IUserLoginMvoStateDeleted e = NewUserLoginMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Пример #4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            UserLoginMvoEventId other = obj as UserLoginMvoEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.UserLoginId, other.UserLoginId) &&
                   Object.Equals(this.UserVersion, other.UserVersion)
                   );
        }
Пример #5
0
 protected UserLoginMvoStateEventDtoBase(UserLoginMvoEventId stateEventId)
 {
     this.UserLoginMvoEventId = stateEventId;
 }
Пример #6
0
 public UserLoginMvoStateDeleted(UserLoginMvoEventId stateEventId) : base(stateEventId)
 {
 }
Пример #7
0
 public UserLoginMvoStateMergePatched(UserLoginMvoEventId stateEventId) : base(stateEventId)
 {
 }
Пример #8
0
 protected UserLoginMvoStateEventBase(UserLoginMvoEventId stateEventId) : base(stateEventId)
 {
 }
Пример #9
0
 private UserLoginMvoStateDeleted NewUserLoginMvoStateDeleted(UserLoginMvoEventId stateEventId)
 {
     return(new UserLoginMvoStateDeleted(stateEventId));
 }
Пример #10
0
 private UserLoginMvoStateMergePatched NewUserLoginMvoStateMergePatched(UserLoginMvoEventId stateEventId)
 {
     return(new UserLoginMvoStateMergePatched(stateEventId));
 }