[SPRNET-1463] ASPNET MVC2 Problem calling an action with AsyncController. Created: 25/Aug/11  Updated: 13/Aug/12

Status: Open
Project: Spring.NET
Component/s: Spring-NET-WEBMVC
Affects Version/s: 1.3.2
Fix Version/s: 2.0

Type: Bug Priority: Minor
Reporter: Erick Lombardo Assignee: Steve Bohlen
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Problem with AsyncController. When i invoke an async action (using MyActionAsync and MyActionComplete) , it doesnt find MyAction

A fix to the issue could be:

Create a class AsyncSpringActionInvoker that inherit from AsyncControllerActionInvoker, and in the class SpringControllerFactory change the following methods to:

protected virtual void AddActionInvokerTo(IController controller)
{
if (controller == null)
return;

if (typeof(AsyncController).IsAssignableFrom(controller.GetType()))

{ ((Controller)controller).ActionInvoker = new AsyncSpringActionInvoker(ApplicationContext); }

else if (typeof(Controller).IsAssignableFrom(controller.GetType()))

{ ((Controller)controller).ActionInvoker = new SpringActionInvoker(ApplicationContext); }

}

i hope this help


Generated at Wed Oct 23 00:27:23 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.