dinesh kumar

dinesh kumar

  • NA
  • 6
  • 5.9k

How to handle multiple request in web api ?

Apr 15 2018 12:42 PM
'public void mypostfunction()       
{ //call Webapi post method here
}'


 --using this code to sent multiple request a time.
'for (int i=0; i< count; i++)
{ new Thread(() =>
{ Thread.CurrentThread.IsBackground = true;
mypostfunction(); }).Start(); }'


--Webapi Route Method '[Route("example/mypostfunction/")]
[System.Web.Http.HttpPost]
public async Task Examplepost(Getvaues value)
{ }'