I am writing an MVC5 application that has a controller with say function Method1
I have a third-party function that async Task, let him call it DoMethodAsync(it essentially makes a POST call).
I want to call it right before returning from Method1, but I don't really care about the result of the async task, if it fails, it fails. How can I start and forget and execute it in the background so that it does not block the controller from responding to other requests?
How can I guarantee that DoMethodAsynconly after return Method1?
source
share