Beispiel #1
0
 public StudyJobInfo(TTarget target, LanguageEdit language, DateTime expirationDate, object criteria)
 {
     Id             = Guid.NewGuid();
     Target         = target;
     ExpirationDate = expirationDate;
     Criteria       = new StudyJobCriteria(language);
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new StudyJobInfo object with the given "immutable" parameters.
 /// Product however can be set once externally (e.g. when the job is done).
 /// ExpectedPrecision defaults to 0, ie anything will do.
 /// </summary>
 public StudyJobInfo(TTarget target, LanguageEdit language, DateTime expirationDate, double expectedPrecision)
 {
     Id             = Guid.NewGuid();
     Target         = target;
     ExpirationDate = expirationDate;
     Criteria       = new StudyJobCriteria(language, expectedPrecision);
 }