[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 Sat Jul 20 03:37:24 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.