public virtual async Task SolveComplaint()
        {
            Console.WriteLine("[manager] The visitor complained about a fly in the drink.");

            // Similarly to example #1, this is a call to a sub-routine,
            // but of a different service with a different deployment (usually).
            await _baristaWorker.PleaseMakeAnotherCoffee();
        }
Esempio n. 2
0
        public async Task SolveComplaint()
        {
            Console.WriteLine("[manager] The visitor complained about a fly in the drink.");

            // !!! LOOK HERE !!!
            // Calling a routine on a distributed service will save the state
            // of current routine, because together they define a workflow.

            await _baristaWorker.PleaseMakeAnotherCoffee();
        }