I need Implement a method that does not expect the return of a call to another method to return OK. How to do this?
i try use 'await' but this wait a finish to return "OK"
[WebMethod] //WebServiceMethod
public string ImportaDadosPosLeilaoValores(string fileName)
{
// this call may take several minutes and should NOT be expected
ImportaDados(fileName);
return "OK - Received"; // immediately
}
A call to the method that IMMEDIATELY returns an OK informing the receiving of the file, in the background, the called method will work until finished and will not return anything when finished