public static IHttpClientBuilder AddAccessTokenPassThrough(this IHttpClientBuilder builder, Action <PassThroughTokenHandlerOptions> configureOptions) { if (configureOptions == null) { throw new ArgumentNullException(nameof(configureOptions)); } builder.Services.Configure(builder.Name, configureOptions); return(builder.AddAccessTokenPassThrough()); }