Session less MVC Controller for MVC 2 / RC

LiveJournal Tags: MVC,MVC 2,session Why a session less controller? Update 5 Feb 2010 – The latest MVC 2 futures on CodePlex contains the the RenderAction() fix – this sample is no longer needed for a session less controller. Use the futures version. You have a single client making multiple concurrent requests to the server. The…


Using the BeginMethod/EndMethod pattern with MVC

If your asynchronous action method calls a service which exposes methods using theBeginMethod() / EndMethod() pattern , your callback will be executed on a thread which is not under thecontrol of ASP.NET. Some consequences of this are that HttpContext.Current will be null, andthere will be race conditions accessing members like AsyncManager.Parameters. To restoreHttpContext.Current and eliminate…