Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

issue from making all my methods async

$
0
0

Hi

I am trying to make all my methods async, however i have a method which is run inside and outside the constructor, but inside the constructor is has the error saying await methods should be decorated with async which isn't an options.

Does that mean its impossible to have all methods async?
Does that mean I need to have two methods,one async and one not? (is this good practice, it means i have to manage the same code twice)


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>