/// <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); }
/// <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); }
/// <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; }