0
Answer

How to handle multiple request in web api ?

dinesh kumar

dinesh kumar

6y
6.3k
1
'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)
{ }'