Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    that's an interesting question. I don't know but I think in this case doing async void has no side effects. Hope someone with more experience could answer. Commented Aug 28, 2015 at 6:34
  • async void does have side effects in this case, because it signals to whomever is calling the method that they can proceed with other work while the method is running. Since Configure deals with application setup, continuing to run other parts of the application code before it is finished can have unpredictable consequences. (We ran into this issue, and it made our application go haywire as the dependency injector injected services that weren't yet properly set up). Commented Oct 12, 2017 at 12:50
  • This another approach where u can run init code before webserver runs. stackoverflow.com/a/55707949/1912383 Commented Sep 21, 2021 at 6:15