private SpfPollResult(SpfRecords records, int? queryCount, TimeSpan? elapsed, List<Error> errors)
 {
     Records = records ?? new SpfRecords(new List<SpfRecord>(), 0);
     QueryCount = queryCount;
     Elapsed = elapsed;
     Errors = errors ?? new List<Error>();
 }
예제 #2
0
 private static ContractSpfRecords ToContract(this SpfRecords spfRecords, bool root = false)
 {
     return(new ContractSpfRecords(
                spfRecords.Records.Select(_ => _.ToContractSpfRecord(root)).ToList(),
                spfRecords.MessageSize,
                spfRecords.Errors.Select(_ => _.ToContract()).ToList()));
 }
 public SpfPollResult(SpfRecords records, int queryCount, TimeSpan elapsed)
     : this(records, queryCount, elapsed, null)
 {}