asp.net mvc - How to implement "no wait" controller call for an API? -
i have set of mvc3 controller methods call javascript clients not require returning data. it's purely 1 way push of tiny data-set further processing. each controller call can take anywhere 100ms 1000ms queue transaction , no data/status returned client.
i want api call return client right away while processing happens in background.
any pointers appreciated.
public actionresult asyncaction() { var mythread = new thread(threadfunction); mythread.start(); return view("asyncview"); } void threadfunction() { . . //code api call etc... . . }
Comments
Post a Comment