Make sure that you've added the using System.Threading.Tasks; statement to the top of your Demo class.