/// <summary> /// Pass record to RTQC for validate /// </summary> /// <param name="workItem"></param> internal static void SendRecordToRTQC(WorkItem workItem) { // Get the index of record in buffer from workItem int index = (int)workItem.InputParameters; dynamic record; // // To Be Implemented... // SOP should decide the action, eg. save record, pass to rtqc // try { // Get the record from buffer if (DiReCTCore.GetRecordFromBuffer(index, out record)) { // Call RTQC API RTQCModule.OnValidate(record, new AsyncCallback(SaveRecordtoDictionary)); workItem.Complete(); } else { // Exception, index not valid } }catch (Exception ex) { Debug.WriteLine("DMModule.SendRecordToRTQC: " + ex.Message); } }
/// <summary> /// Pass record to RTQC for validate /// </summary> /// <param name="workItem"></param> private static void SendRecordToRTQC(int index) { dynamic record; // // To Be Implemented... // SOP should decide the action, eg. save record, pass to rtqc // try { // Get the record from buffer if (DiReCTCore.GetRecordFromBuffer(index, out record)) { // Call RTQC API RTQCModule.OnValidate(record); } else { // Exception, index not valid } }catch (Exception ex) { Debug.WriteLine("DMModule.SendRecordToRTQC: " + ex.Message); } }