Exemple #1
0
 public static MongoRejectedKeyInfoDoc FromMessage(
     [NotNull] ExtractFileCollectionInfoMessage message,
     [NotNull] IMessageHeader header,
     [NotNull] DateTimeProvider dateTimeProvider)
 {
     return(new MongoRejectedKeyInfoDoc(
                MongoExtractionMessageHeaderDoc.FromMessageHeader(message.ExtractionJobIdentifier, header, dateTimeProvider),
                message.RejectionReasons
                ));
 }
Exemple #2
0
 public static MongoExpectedFilesDoc FromMessage(
     [NotNull] ExtractFileCollectionInfoMessage message,
     [NotNull] IMessageHeader header,
     [NotNull] DateTimeProvider dateTimeProvider)
 {
     return(new MongoExpectedFilesDoc(
                MongoExtractionMessageHeaderDoc.FromMessageHeader(message.ExtractionJobIdentifier, header, dateTimeProvider),
                message.KeyValue,
                new HashSet <MongoExpectedFileInfoDoc>(message.ExtractFileMessagesDispatched.Select(x => new MongoExpectedFileInfoDoc(x.Key.MessageGuid, x.Value))),
                MongoRejectedKeyInfoDoc.FromMessage(message, header, dateTimeProvider)));
 }
Exemple #3
0
 public static MongoExtractJobDoc FromMessage(
     [NotNull] ExtractionRequestInfoMessage message,
     [NotNull] IMessageHeader header,
     [NotNull] DateTimeProvider dateTimeProvider)
 {
     return new MongoExtractJobDoc(
         message.ExtractionJobIdentifier,
         MongoExtractionMessageHeaderDoc.FromMessageHeader(message.ExtractionJobIdentifier, header, dateTimeProvider),
         message.ProjectNumber,
         ExtractJobStatus.WaitingForCollectionInfo,
         message.ExtractionDirectory,
         message.JobSubmittedAt,
         message.KeyTag,
         (uint)message.KeyValueCount,
         message.ExtractionModality,
         message.IsIdentifiableExtraction,
         message.IsNoFilterExtraction,
         null
     );
 }