Table of Contents

Method TryParseSaslName

Namespace
MailFathom.Domain.Transport
Assembly
MailFathom.Domain.dll

TryParseSaslName(string?, out MailAuthenticationMechanism)

Parses an operator-supplied SASL name, ignoring case and surrounding whitespace.

public static bool TryParseSaslName(string? saslName, out MailAuthenticationMechanism mechanism)

Parameters

saslName string

The configured mechanism name.

mechanism MailAuthenticationMechanism

The parsed mechanism when the name is supported; otherwise the unspecified default.

Returns

bool

true when the name is a supported mechanism; otherwise false.