private void snapshotPostBuild(ObjectSpace snapshotObjectSpace) { var schedEvents = snapshotObjectSpace.GetObjects <Event>(null, true); schedEvents.ToList().ForEach(x => { x.UpdateResourceIds(); x.Save(); }); var args = new SnapshotPostOperationArgs(snapshotObjectSpace); Owner.OnSnapshotPostBuild(args); }
private void snapshotPostLoad(IObjectSpace objectSpace) { var schedEvents = objectSpace.GetObjects<Event>(null, true); schedEvents.ToList().ForEach(x => { x.UpdateResourceIds(); x.Save(); }); var args = new SnapshotPostOperationArgs(objectSpace); Owner.OnSnapshotPostLoad(args); }
/// <summary> /// Called when [snapshot post load]. /// </summary> /// <param name="e">The e.</param> internal void OnSnapshotPostLoad(SnapshotPostOperationArgs e) { var handler = SnapshotPostLoad; if (handler != null) handler(this, e); }