TaskServiceAgent.TaskServiceSoap agent = new TaskServiceAgent.TaskServiceSoapClient();//远程webservcie
var q=new TaskFactory().FromAsync<int, TaskServiceAgent.Task[]>(agent.BeginGetTaskList, agent.EndGetTaskList,92,null);
var m = q.Result;
FromAsync<int, TaskServiceAgent.Task[]>(参数,结果类型>