Example #1
0
        private InOutImageEventId NewInOutImageEventId(string sequenceId)
        {
            var eId = new InOutImageEventId();

            eId.InOutDocumentNumber = this.InOutEventId.DocumentNumber;
            eId.SequenceId          = sequenceId;
            eId.InOutVersion        = this.InOutEventId.Version;
            return(eId);
        }
Example #2
0
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IInOutImageStateRemoved MapRemove(IRemoveInOutImage c, IInOutCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId          = new InOutImageEventId(c.InOutDocumentNumber, c.SequenceId, version);
            IInOutImageStateRemoved e = NewInOutImageStateRemoved(stateEventId);


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

            return(e);
        }// END Map(IRemove... ////////////////////////////
Example #3
0
        protected virtual IInOutImageStateCreated MapCreate(ICreateInOutImage c, IInOutCommand outerCommand, long version, IInOutState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId          = new InOutImageEventId(c.InOutDocumentNumber, c.SequenceId, version);
            IInOutImageStateCreated e = NewInOutImageStateCreated(stateEventId);
            var s = outerState.InOutImages.Get(c.SequenceId, true);

            e.Url    = c.Url;
            e.Active = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Example #4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            InOutImageEventId other = obj as InOutImageEventId;

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

            return(true &&
                   Object.Equals(this.InOutDocumentNumber, other.InOutDocumentNumber) &&
                   Object.Equals(this.SequenceId, other.SequenceId) &&
                   Object.Equals(this.InOutVersion, other.InOutVersion)
                   );
        }
Example #5
0
 protected InOutImageStateEventDtoBase(InOutImageEventId stateEventId)
 {
     this.InOutImageEventId = stateEventId;
 }
Example #6
0
 public InOutImageStateRemoved(InOutImageEventId stateEventId) : base(stateEventId)
 {
 }
Example #7
0
 public InOutImageStateMergePatched(InOutImageEventId stateEventId) : base(stateEventId)
 {
 }
Example #8
0
 public InOutImageStateCreated(InOutImageEventId stateEventId) : base(stateEventId)
 {
 }
Example #9
0
 protected InOutImageStateEventBase(InOutImageEventId stateEventId) : base(stateEventId)
 {
 }
Example #10
0
 private InOutImageStateRemoved NewInOutImageStateRemoved(InOutImageEventId stateEventId)
 {
     return(new InOutImageStateRemoved(stateEventId));
 }
Example #11
0
 private InOutImageStateMergePatched NewInOutImageStateMergePatched(InOutImageEventId stateEventId)
 {
     return(new InOutImageStateMergePatched(stateEventId));
 }
Example #12
0
        protected InOutImageEventId NewInOutImageEventId(string sequenceId)
        {
            var stateEventId = new InOutImageEventId(this.InOutEventId.DocumentNumber, sequenceId, this.InOutEventId.Version);

            return(stateEventId);
        }