public ArchivedReleaseEventSeriesVersion(ReleaseEventSeries series, XDocument data, ReleaseEventSeriesDiff diff, AgentLoginData author, EntryEditEvent commonEditEvent, string notes) : base(data, author, series.Version, EntryStatus.Finished, notes) { ParamIs.NotNull(() => diff); Entry = series; Diff = diff; CommonEditEvent = commonEditEvent; }
public static ArchivedReleaseEventSeriesVersion Create(ReleaseEventSeries series, ReleaseEventSeriesDiff diff, AgentLoginData author, EntryEditEvent commonEditEvent, string notes) { var contract = new ArchivedEventSeriesContract(series, diff); var data = XmlHelper.SerializeToXml(contract); return(series.CreateArchivedVersion(data, diff, author, commonEditEvent, notes)); }
public virtual ArchivedReleaseEventSeriesVersion CreateArchivedVersion(XDocument data, ReleaseEventSeriesDiff diff, AgentLoginData author, EntryEditEvent reason, string notes) { var archived = new ArchivedReleaseEventSeriesVersion(this, data, diff, author, reason, notes); ArchivedVersionsManager.Add(archived); Version++; return(archived); }