Example #1
0
        private void Finished(IAsyncResult result)
        {
            StartListeningHandler handlerInit = (StartListeningHandler)((AsyncResult)result).AsyncDelegate;

            handlerInit.EndInvoke(result);
        }
Example #2
0
 public void Start()
 {
     StartListeningHandler handler = new StartListeningHandler(Subscribe);
     IAsyncResult          result  = handler.BeginInvoke(new AsyncCallback(Finished), "Finished:" + _MachineSN);
 }