public IList<RecordedAction> allRecordedActions(IRecordedActionContext context) { IQueryable<RecordedAction> query = from action in Instances<RecordedAction>() where action.Context == context select action; return query.ToList(); }
public IList <RecordedAction> allRecordedActions(IRecordedActionContext context) { IQueryable <RecordedAction> query = from action in Instances <RecordedAction>() where action.Context == context select action; return(query.ToList()); }
private void RecordAction(IRecordedActionContext context, string type, string action, string details) { var ra = NewTransientInstance<RecordedAction>(); ra.Context = context; ra.Type = type; ra.Name = action; ra.Details = details; ra.Actor = (IActor) (m_userFinder.CurrentUserAsObject()); ra.Date = DateTime.Now; Persist(ref ra); }
public virtual void RecordFieldChange(IRecordedActionContext context, string fieldName, object previousContents, object newContents) { string fromValue = previousContents == null ? "null" : previousContents.ToString(); string toValue = newContents == null ? "null" : newContents.ToString(); if (fromValue.Equals(toValue)) { return; } string details = "From: " + fromValue + " to: " + toValue; RecordAction(context, RecordedAction.CHANGE, fieldName, details); }
private void RecordAction(IRecordedActionContext context, string type, string action, string details) { var ra = NewTransientInstance <RecordedAction>(); ra.Context = context; ra.Type = type; ra.Name = action; ra.Details = details; ra.Actor = (IActor)(m_userFinder.CurrentUserAsObject()); ra.Date = DateTime.Now; Persist(ref ra); }
#pragma warning restore 618 public void HiddenContributedAction([ContributedAction(SubMenu = "Recorded Actions", Id = "Claim-RecordedActionContributedActions:")] IRecordedActionContext context) { }
public virtual IList <RecordedAction> AllRecordedActions([ContributedAction(SubMenu = "Recorded Actions", Id = "Claim-RecordedActionContributedActions:")] IRecordedActionContext context) { return(m_recordedActionRepository.allRecordedActions(context)); }
public virtual void RecordMenuAction(IRecordedActionContext context, string action, string details) { RecordAction(context, RecordedAction.ACTION, action, details); }
// // * This region contains references to the services (Repositories, // * Factories or other Services) used by this domain object. The // * references are injected by the application container. // #endregion public virtual IList<RecordedAction> AllRecordedActions(IRecordedActionContext context) { return m_recordedActionRepository.allRecordedActions(context); }