public void Apply(SagaReceivedCommandEvent @event) { Command = @event.Command; Key = @event.Key; SuccessEventType = @event.SuccessEventType; }
public ScheduledCommandProcessingSagaState(Guid id, ScheduledCommandProcessingSaga.States state, Command command, ScheduleKey key, Type successEventType) : base(id, state) { var sagaReceivedCommandEvent = new SagaReceivedCommandEvent(command, key, successEventType); RaiseEvent(sagaReceivedCommandEvent); }