Example #1
0
        // ENDSAMPLE


        // SAMPLE: passing-saga-state-id-through-message
        public void Handle(ToyOnTray toyReady, HappyMealOrderState state)
        {
            state.ToyReady = true;
            if (state.IsOrderComplete())
            {
                MarkCompleted();
            }
        }
Example #2
0
        // ENDSAMPLE


        // SAMPLE: passing-saga-state-id-through-message
        public void Handle(ToyOnTray toyReady)
        {
            State.ToyReady = true;
            if (State.IsOrderComplete())
            {
                MarkCompleted();
            }
        }