public Event InitialMasterOperation(Event updateToMaster) { ForwardEvent forwardEvent = new ForwardEvent { EntityKey = updateToMaster.Id, UpdateToEvent = updateToMaster, Parameters = base.Parameters, Scope = this.Scope, SeriesSequenceNumber = new int?(this.seriesSequenceNumber), OccurrencesViewPropertiesBlob = this.occurrencesViewPropertiesBlob }; forwardEvent.Execute(this.Context); return(this.Scope.Read(base.EntityKey, null)); }
public void ExecuteOnInstance(Event seriesInstance) { Event @event = new Event { Id = seriesInstance.Id, ChangeKey = seriesInstance.ChangeKey }; IActionPropagationState actionPropagationState = @event; actionPropagationState.LastExecutedAction = new Guid?(this.CommandId); ForwardEvent forwardEvent = new ForwardEvent { EntityKey = @event.Id, UpdateToEvent = @event, Parameters = base.Parameters, Scope = this.Scope, SeriesSequenceNumber = new int?(this.seriesSequenceNumber) }; forwardEvent.Execute(new CommandContext { IfMatchETag = seriesInstance.ChangeKey }); }