示例#1
0
        // ENDSAMPLE


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


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