Example #1
0
        //private void AddEntryToTrackingList(RequiredDetailsForSendingExam details)
        //{
        //    try {

        //        var iV = new InstructorValidationData(details.StudentID, Guid.NewGuid(), DateTime.Now, int.Parse(details.SequenceNumber) + 1);
        //    TrackingEntry entry = new TrackingEntry(details.StudentID, details.SequenceNumber,iV);

        //    lock (TrackingList)
        //    {
        //        TrackingList.Add(details.StudentID, entry);
        //    }
        //    }
        //    catch(Exception ex)
        //    {
        //        aLogger.LogMessage(ex.Message + "[exception in AddEntryToTrackingList]", LogMsgType.Error);
        //        throw ex;
        //    }
        //}

        private InstructorValidationData GetIV(RequiredDetails details)
        {
            try
            {
                Random r = new Random();

                var iV = new InstructorValidationData(details.StudentID,
                                                      DateTime.Now, int.Parse(details.SequenceNumber), int.Parse(details.SequenceNumber) + 1);
                //    TrackingEntry entry = new TrackingEntry(details.StudentID, details.SequenceNumber, iV);
                return(iV);
            }
            catch (Exception ex)
            {
                //  aLogger.LogMessage(ex.Message + "[exception in GetIV]", LogMsgType.Error);
                throw ex;
            }
        }
Example #2
0
 public TrackingEntry(string stdID, string sn, InstructorValidationData v)
 {
     StdID = stdID;
     SN    = int.Parse(sn);
     V     = v;
 }