假设我有这样的电话:
_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);
但它抱怨一个模棱两可的电话?
任何指针?