Chintan Dave

Chintan Dave

  • NA
  • 67
  • 35k

Asynchronous Methods

Aug 9 2018 6:33 AM
What should I utilize for writing something in Task.run method of web application in C#?
 
For Example :
 
public static async Task AsynchronousSave(string ID,string ButtonClicked,string operationType, string UserID ,int roleRank,DateTime DEDateTime,string activity,string strChartJSON,string UserRole,int medrecactkey,string DEAttemptId)
{
//HttpContext.Current.Response.Write("Execution Start AsynchronousSave: " + ID + "\n");
await Task.Run(() =>
{
// I Would like to write something over here ....Response.write already tried not worked here
}
);}

Answers (2)