public void OnOperationCompleted(IAsyncResult ar)
{
try
{
// check if the begin operation has had a chance to complete.
lock (Lock)
{
if (InnerResult == null)
{
InnerResult = ar;
}
}
// signal that the operation is complete.
OperationCompleted();
}
catch (Exception e)
{
Utils.Trace(e, "Unexpected exception invoking WcfChannelAsyncResult callback function.");
}
}