Dispatchmiddleware

DispatchMiddleware executes the controller action determined earlier. It expects the controller and action to be set and throws an exception when they are missing. Place it at the end of the pipeline so all preprocessing is completed before the action runs.