SyntaxFix
Write A Post
Hire A Developer
Questions
You should get the awaiter (GetAwaiter()) and end the wait for the completion of the asynchronous task (GetResult()).
GetAwaiter()
GetResult()
string code = GenerateCodeAsync().GetAwaiter().GetResult();