Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1463

ASPNET MVC2 Problem calling an action with AsyncController.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.2
    • Fix Version/s: 2.0
    • Component/s: Spring-NET-WEBMVC
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              sbohlen Steve Bohlen
              Reporter:
              lombardo Erick Lombardo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: