Say I have a call like so:
_actService.BeginWcfCall(x => x.SaveAct(new SaveActRequest
{
Act = act
}));
How do I get to the response of SaveAct? How can I set up a callback to fire when the operation completes?
I have tried:
_actService.BeginWcfCall(x => x.GetAct(new GetActRequest
{
ActName =
saveScheduleSlotRequest.ScheduleSlot.ActProxy.Name
}), (result) =>
{
var async = (GetActResponse)result.AsyncState;
}, _actService);
But it complains about an ambiguous call?
Any pointers?