private void Finished(IAsyncResult result) { StartListeningHandler handlerInit = (StartListeningHandler)((AsyncResult)result).AsyncDelegate; handlerInit.EndInvoke(result); }
public void Start() { StartListeningHandler handler = new StartListeningHandler(Subscribe); IAsyncResult result = handler.BeginInvoke(new AsyncCallback(Finished), "Finished:" + _MachineSN); }