Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
 /// <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;
 }