Microsoft.Identity.Client.Extensibility.ManagedIdentityApplicationBuilderExtensions
Extensibility methods for ManagedIdentityApplicationBuilder.
public static ManagedIdentityApplicationBuilder OnBackgroundTokenRefreshCompleted(this ManagedIdentityApplicationBuilder builder, Func<ExecutionResult, Task> onBackgroundTokenRefreshCompleted)
Configures an async callback invoked when a fire-and-forget background (proactive) token refresh completes.
Proactive refresh runs on a background thread after the caller has already received a valid cached token,
so its outcome (latency, failures) is otherwise unobservable. This callback surfaces it, e.g. for telemetry.