public virtual async Task PleaseMakeAnotherCoffee()
        {
            Console.WriteLine("[barista] But that's a latte art! Fine..");

            // This call is not to a sub-routine since ICoffeeMachine is not a service.
            await _coffeeMachine.BrewCoffee();
        }
Exemplo n.º 2
0
        public async Task PleaseMakeAnotherCoffee()
        {
            Console.WriteLine("[barista] But that's a latte art! Fine..");

            // !!! LOOK HERE !!!
            // Calling a routine on a simple dependency will NOT save the state
            // of current routine, because it's not a part of a workflow.

            await _coffeeMachine.BrewCoffee();
        }