Compartilhar via


AsyncAuthTokenResolver Delegate

Definition

Async delegate used by the exporter to obtain an auth token for a specific agent + tenant. Must be fast and non-blocking (use internal caching elsewhere). Return null/empty to omit the Authorization header.

public delegate System.Threading.Tasks.Task<string?> AsyncAuthTokenResolver(string agentId, string tenantId);
type AsyncAuthTokenResolver = delegate of string * string -> Task<string>
Public Delegate Function AsyncAuthTokenResolver(agentId As String, tenantId As String) As Task(Of String) 

Parameters

agentId
String
tenantId
String

Return Value

Applies to