Пример #1
0
        /// <summary>
        /// <see cref="IEmulatorCommands.EndEmulateVerificationSCU"/>
        /// </summary>
        /// <returns></returns>
        public bool EndEmulateVerificationSCU(
            IAsyncResult ar)
        {
            // Retrieve the delegate.
            AsyncEmulateVerificationSCUDelegate dlgt = (AsyncEmulateVerificationSCUDelegate)ar.AsyncState;
            // Call EndInvoke to retrieve the results.
            bool retValue = dlgt.EndInvoke(ar);

            return(retValue);
        }
Пример #2
0
        /// <summary>
        /// <see cref="IEmulatorCommands.BeginEmulateVerificationSCU"/>
        /// </summary>
        /// <returns></returns>
        public System.IAsyncResult BeginEmulateVerificationSCU(
            AsyncCallback cb)
        {
            // Create the delegate.
            AsyncEmulateVerificationSCUDelegate dlgt = new AsyncEmulateVerificationSCUDelegate(this.EmulateVerificationSCU);
            // Initiate the asychronous call.
            object       asyncState = dlgt;
            IAsyncResult ar         = dlgt.BeginInvoke(
                cb,
                asyncState);

            return(ar);
        }
Пример #3
0
 /// <summary>
 /// <see cref="IEmulatorCommands.BeginEmulateVerificationSCU"/>
 /// </summary>
 /// <returns></returns>
 public System.IAsyncResult BeginEmulateVerificationSCU(
     AsyncCallback cb)
 {
     // Create the delegate.
     AsyncEmulateVerificationSCUDelegate dlgt = new AsyncEmulateVerificationSCUDelegate(this.EmulateVerificationSCU);
     // Initiate the asychronous call.
     object asyncState = dlgt;
     IAsyncResult ar = dlgt.BeginInvoke(
         cb,
         asyncState);
     return ar;
 }