public static new WcfChannelAsyncResult WaitForComplete(IAsyncResult ar)
{
WcfChannelAsyncResult asyncResult = ar as WcfChannelAsyncResult;
if (asyncResult == null)
{
throw new ArgumentException("End called with an invalid IAsyncResult object.", "ar");
}
if (!asyncResult.WaitForComplete())
{
throw new ServiceResultException(StatusCodes.BadTimeout);
}
return asyncResult;
}