asynccontroller

ASP.NET MVC 2 asynchronous action with timeout

I want to write an asynchronous action in ASP.NET MVC 2 that waits up to 5 seconds for an event to occur. If the event occurs then the server responds with a result, otherwise the request times out. What is the best way to achieve this? ...

Returning ActionResult in an AsyncController when an event ocurrs

I would like EndGetMatches in the code below to get called when a certain event is fired. BeginGetMatches executes and completes but I don't want EndGetMatches to get called yet. I want to return the ActionResult only when my other Thread notifies me i'm ready to. public delegate void MatchEvent(MatchEventArgs args); public IAsyncResult...

Building unit tests for MVC2 AsyncControllers

Hi, I'm considering re-rewriting some of my MVC controllers to be async controllers. I have working unit tests for these controllers, but I'm trying to understand how to maintain them in an async controller environment. For example, currently I have an action like this: public ContentResult Transaction() { do stuff... return C...

Resource not found in asp.net mvc AsyncController

Hi, I just converted a my controller to asyncController in asp.net mvc 2. (ie: spliting action method About into AboutAsync and AboutCompleted). However, I am getting a resource not found error. My route table has not change and the only reason I can think of is because I am mvcextension project. Since it does it's own wiring of c...

how to use AsyncController in MVC application using Ninject for DI ?

Does anyone know how to use an AsyncController in a mvc application that uses Ninject for DI? AsyncController works fine when i dont use ninject but i cant make them work together. I added following in my sitemodule but no go. Bind<IAsyncController>( ).To<AsyncController>( ).InSingletonScope( ); sorry for not explaining this in de...

ASP.NET MVC AsyncController xxxCompleted

When implementing ASP.NET MVC AsyncController the xxxCompleted method has to be Public. I'm wondering if this means the xxxCompleted method can be invoked directly, or if this is protected internally using NonAction or something similar? Thanks. ...