Exemplo n.º 1
0
 /// <summary>
 /// Adds Dapr API token authentication.
 /// See https://docs.dapr.io/operations/security/api-token/ for more information about API token authentication in Dapr.
 /// By default, the token will be read from the DAPR_API_TOKEN environment variable.
 /// </summary>
 /// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param>
 /// <returns>A reference to <paramref name="builder"/> after the operation has completed.</returns>
 public static AuthenticationBuilder AddDapr(this AuthenticationBuilder builder) => builder.AddDapr(configureOptions: null);