I am new in Microsoft bot development, so I started to use the examples published on Github by the company. I noticed that some example has disabled a warning in the dialog classes:
#pragma warning disable 1998
if I remove the line, I got the expected message "The async method lacks 'await' operators and will run synchronously..." Thats normal since the examples usually contains method calls such as context.Wait(this.MessageReceivedAsync); where MessageReceivedAsync() is an async method.
I learnt that suppressing warnings is not a good approach and to resolve the cause of the warning would be the preferable. I have the feeling I miss the point here somehow. I would like to understand the concept why did the developer choose to use disable the warning here and not find another way of implementation instead? Should I do the same if I develop similar applications?