public static MongoRejectedKeyInfoDoc FromMessage( [NotNull] ExtractFileCollectionInfoMessage message, [NotNull] IMessageHeader header, [NotNull] DateTimeProvider dateTimeProvider) { return(new MongoRejectedKeyInfoDoc( MongoExtractionMessageHeaderDoc.FromMessageHeader(message.ExtractionJobIdentifier, header, dateTimeProvider), message.RejectionReasons )); }
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))); }
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 ); }