/// <summary> /// <see cref="IEmulatorCommands.EndEmulateSCP"/> /// </summary> /// <returns></returns> public bool EndEmulateSCP( IAsyncResult ar) { // Retrieve the delegate. AsyncEmulateSCPDelegate dlgt = (AsyncEmulateSCPDelegate)ar.AsyncState; // Call EndInvoke to retrieve the results. bool retValue = dlgt.EndInvoke(ar); return(retValue); }
/// <summary> /// <see cref="IEmulatorCommands.BeginEmulateSCP"/> /// </summary> /// <returns></returns> public System.IAsyncResult BeginEmulateSCP( AsyncCallback cb) { // Create the delegate. AsyncEmulateSCPDelegate dlgt = new AsyncEmulateSCPDelegate(this.EmulateSCP); // Initiate the asychronous call. object asyncState = dlgt; IAsyncResult ar = dlgt.BeginInvoke( cb, asyncState); return(ar); }
/// <summary> /// <see cref="IEmulatorCommands.BeginEmulateSCP"/> /// </summary> /// <returns></returns> public System.IAsyncResult BeginEmulateSCP( AsyncCallback cb) { // Create the delegate. AsyncEmulateSCPDelegate dlgt = new AsyncEmulateSCPDelegate(this.EmulateSCP); // Initiate the asychronous call. object asyncState = dlgt; IAsyncResult ar = dlgt.BeginInvoke( cb, asyncState); return ar; }