ConsoleMenu icon indicating copy to clipboard operation
ConsoleMenu copied to clipboard

How to use this library with async actions

Open ViRuSTriNiTy opened this issue 2 years ago • 6 comments

Hi there,

great package, it gets you started real quick. I try to use it with some simple async code and Serilog logging. But as soon as I have executed the first menu action the Serilog logging won't work anymore.

It seem like the use of GetAwaiter().GetResult() is causing this.

Do you have any hints / recommendation on how to use async code in the menu actions?

So lonG Daniel

ViRuSTriNiTy avatar May 02 '22 08:05 ViRuSTriNiTy