Example #1
0
        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;
        }
Example #2
0
        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));
        }
Example #3
0
        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);
        }