コード例 #1
0
        /// <summary>
        /// <see cref="IEmulatorCommands.EndEmulateStorageSCU"/>
        /// </summary>
        /// <returns></returns>
        public bool EndEmulateStorageSCU(
            IAsyncResult ar)
        {
            // Retrieve the delegate.
            AsyncEmulateStorageSCUDelegate dlgt = (AsyncEmulateStorageSCUDelegate)ar.AsyncState;
            // Call EndInvoke to retrieve the results.
            bool retValue = dlgt.EndInvoke(ar);

            return(retValue);
        }
コード例 #2
0
        /// <summary>
        /// <see cref="IEmulatorCommands.BeginEmulateStorageSCU"/>
        /// </summary>
        /// <returns></returns>
        public System.IAsyncResult BeginEmulateStorageSCU(
            MediaFileName[] mediaFileNames,
            System.Boolean multipleAssocations,
            System.Boolean validateOnImport,
            System.Boolean dataUnderNewStudy,
            System.UInt16 nrOfRepetitions,
            AsyncCallback cb)
        {
            // Create the delegate.
            AsyncEmulateStorageSCUDelegate dlgt = new AsyncEmulateStorageSCUDelegate(this.EmulateStorageSCU);
            // Initiate the asychronous call.
            object       asyncState = dlgt;
            IAsyncResult ar         = dlgt.BeginInvoke(
                mediaFileNames,
                multipleAssocations,
                validateOnImport,
                dataUnderNewStudy,
                nrOfRepetitions,
                cb,
                asyncState);

            return(ar);
        }
コード例 #3
0
ファイル: EmulatorSession.cs プロジェクト: ewcasas/DVTK
        /// <summary>
        /// <see cref="IEmulatorCommands.BeginEmulateStorageSCU"/>
        /// </summary>
        /// <returns></returns>
        public System.IAsyncResult BeginEmulateStorageSCU(
            MediaFileName[] mediaFileNames, 
            System.Boolean multipleAssociations,
            System.Boolean validateOnImport,
			System.Boolean dataUnderNewStudy,
            System.UInt16 nrOfRepetitions,
            AsyncCallback cb)
        {
            // Create the delegate.
            AsyncEmulateStorageSCUDelegate dlgt = new AsyncEmulateStorageSCUDelegate(this.EmulateStorageSCU);
            // Initiate the asychronous call.
            object asyncState = dlgt;
            IAsyncResult ar = dlgt.BeginInvoke(
                mediaFileNames,
                multipleAssociations,
                validateOnImport,
                dataUnderNewStudy,
                nrOfRepetitions,
                cb,
                asyncState);
            return ar;
        }