private static void getBestHostCallback(IAsyncResult ar) { getBestHostDelegate dlgt = (getBestHostDelegate)ar.AsyncState; dlgt.EndInvoke(ar); }
public static void startMeasurement() { getBestHostDelegate task = BCPrivateUtil.getBestHost; IAsyncResult asyncResult = task.BeginInvoke(getBestHostCallback, task); }