ValidatorBaseTCheckHostAsync(IPAddress, String, String, Boolean, CancellationToken) Method

Validates the record(s)

Definition

Namespace: ARSoft.Tools.Net.Spf
Assembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
C#
public Task<ValidationResult> CheckHostAsync(
	IPAddress ip,
	string domain,
	string sender,
	bool expandExplanation = false,
	CancellationToken token = default
)

Parameters

ip  IPAddress
The IP address of the SMTP client that is emitting the mail
domain  String
The domain portion of the "MAIL FROM" or "HELO" identity
sender  String
The "MAIL FROM" or "HELO" identity
expandExplanation  Boolean  (Optional)
A value indicating if the explanation should be retrieved in case of Fail
token  CancellationToken  (Optional)
The token to monitor cancellation requests

Return Value

TaskValidationResult
The result of the evaluation

See Also