Is it possible in .net core for a controller to call an Async method that will use a scoped DbContext but not be awaited?
Basically I want this unawaited Async method to make an http call to an external dependency, and when done, save some information to the DB, but we don’t want to await the call because the user does not need the outcome of the operation, they just need to know that the operation was started.
When the call is not awaited, the DbContext is disposed of before the operation completes because the client http request (not the http call to the external dependency) is complete. What’s the best approach to handling this without awaiting the call?