@tibor19
St Async =true to let page know there could be async calls on the page(in html page)
Add Asynchronous processing = true to connection string
Async methods called in pre render - will not call prerender complete until async call is done
Add eventhandler
eh.begininvoke , eh.endinvoke
AddOnPreRenderCompleteAsync Command to invoke async call
Need to use page tasks to get full benefit of async calls
Page.RegisterAsayncTask(new pageasynctask.... use 2nd overload and set last parameter to false
Use page instead addonPrerendercompleteAsync for better results
Don't need async =true if using page method
MVC2 added async controllers
Make controller a asynccontroller
Add Async to end of function name...and add a new one with completed on end
AsyncManager.Outstandingoperations.increment
Parallel.invoke
Asynmanager.OutstandingOPerations.decrement
Thursday, May 19, 2011
Improving your asp.net application Performance with Asynchronous pages and actions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment