You're missing the task {} block
This assumes the context is already a task computation expression, which is what you'd have in asynchronous code.
and the C# is missing the `async Task` boilerplate