protected virtual ILocatorStateDeleted Map(IDeleteLocator c) { var stateEventId = new LocatorEventId(c.LocatorId, c.Version); ILocatorStateDeleted e = NewLocatorStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual ILocatorStateDeleted Map(IDeleteLocator c) { var stateEventId = new LocatorStateEventId(c.LocatorId, c.Version); ILocatorStateDeleted e = NewLocatorStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual ILocatorStateDeleted Map(IDeleteLocator c) { var stateEventId = new LocatorStateEventId(c.LocatorId, c.Version); ILocatorStateDeleted e = NewLocatorStateDeleted(stateEventId); ReflectUtils.CopyPropertyValue("CommandId", c, e); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
public virtual void Delete(IDeleteLocator c) { ILocatorStateDeleted e = Map(c); Apply(e); }
void ILocatorApplicationService.When(IDeleteLocator c) { this.When((DeleteLocatorDto)c); }
public virtual void When(IDeleteLocator c) { Update(c, ar => ar.Delete(c)); }