コード例 #1
0
 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()));
 }
コード例 #3
0
 public SpfPollResult(SpfRecords records, int queryCount, TimeSpan elapsed)
     : this(records, queryCount, elapsed, null)
 {}