Table of Contents

Method TryParseGrantTypeName

Namespace
MailFathom.Infrastructure.Mail.OAuth
Assembly
MailFathom.Infrastructure.dll

TryParseGrantTypeName(string?, out MailOAuthGrant)

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

public static bool TryParseGrantTypeName(string? grantTypeName, out MailOAuthGrant grant)

Parameters

grantTypeName string

The configured grant name.

grant MailOAuthGrant

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

Returns

bool

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