Search code examples
orleans

Why doesn't orleans doesn't show 'Hello World'?



I am following Microsoft Orleans Tutotials to do the 'Hello World' and I was able to get everything compiled but when I run I get

System.Threading.Tasks.Task`1[System.String]

instead of showing 'Hello World!'. I put a break point in the return statement from the Grain and it is called after the print actually happened. It seems the execution happens even before the real grain is called. I thought the call return is a promise and should execute like closure. Am I missing something?


Solution

  • You need to get the result of the task.