Async ctp MVC4 and workflows
问题 I have the below code which calls a workflow. I am wondering if I can changed the controller to be asynchronous using the async ctp. public ActionResult Index() { var input = new Dictionary<string, object>(); input["ViewData"] = this.ViewData; var userState = "BeginInvoke example"; var invoker = new WorkflowInvoker(HelloMvcDefinition); Task workflowTask = Task.Factory.FromAsync<IDictionary<string, object>>( invoker.BeginInvoke(input, WorkflowCompletedCallback, userState), invoker.EndInvoke);