Method FromEntra
- Namespace
- MailFathom.AI.Embeddings
- Assembly
- MailFathom.AI.dll
FromEntra(EntraCredentialDeclaration, IDisposable?)
Builds a credential that presents a Microsoft Entra access token.
public static EmbeddingEndpointCredential FromEntra(EntraCredentialDeclaration declaration, IDisposable? resolvedMaterial)
Parameters
declarationEntraCredentialDeclarationWhat the credential is built from.
resolvedMaterialIDisposableThe secret material the declaration's own secret was read from, released when this credential is, or null when the shape holds none.
Returns
- EmbeddingEndpointCredential
The credential.
Exceptions
- ArgumentNullException
Thrown when
declarationis null.