1
說我有像這樣的電話:從城堡WCF設施異步調用獲得響應
_actService.BeginWcfCall(x => x.SaveAct(new SaveActRequest
{
Act = act
}));
如何去SaveAct的反應?如何在操作完成時設置回調來觸發?
我曾嘗試:
_actService.BeginWcfCall(x => x.GetAct(new GetActRequest
{
ActName =
saveScheduleSlotRequest.ScheduleSlot.ActProxy.Name
}), (result) =>
{
var async = (GetActResponse)result.AsyncState;
}, _actService);
但它抱怨一個模棱兩可的電話嗎?
任何指針?
你必須明確指定`result`的類型我認爲 – 2011-01-12 12:29:11