コード例 #1
0
        protected virtual ILocatorTypeStateCreated Map(ICreateLocatorType c)
        {
            var stateEventId           = new LocatorTypeEventId(c.LocatorTypeId, c.Version);
            ILocatorTypeStateCreated e = NewLocatorTypeStateCreated(stateEventId);

            e.Description = c.Description;
            e.Active      = c.Active;
            e.CommandId   = c.CommandId;


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


            return(e);
        }
コード例 #2
0
        public virtual void Create(ICreateLocatorType c)
        {
            ILocatorTypeStateCreated e = Map(c);

            Apply(e);
        }
コード例 #3
0
 void ILocatorTypeApplicationService.When(ICreateLocatorType c)
 {
     this.When((CreateLocatorTypeDto)c);
 }
コード例 #4
0
 public virtual void When(ICreateLocatorType c)
 {
     Update(c, ar => ar.Create(c));
 }