diff --git a/src/Duende.Bff.Blazor.Client/ServiceCollectionExtensions.cs b/src/Duende.Bff.Blazor.Client/ServiceCollectionExtensions.cs
index ae1970ea..c758bd71 100644
--- a/src/Duende.Bff.Blazor.Client/ServiceCollectionExtensions.cs
+++ b/src/Duende.Bff.Blazor.Client/ServiceCollectionExtensions.cs
@@ -118,7 +118,8 @@ private static void SetBaseAddress(IServiceProvider sp, HttpClient client)
/// The name of that to
/// configure. A common use case is to use the same named client in multiple
/// render contexts that are automatically switched between via interactive
- /// render modes.
+ /// render modes. In that case, ensure both the client and server project
+ /// define the HttpClient appropriately.
/// A configuration callback used to set up
/// the .
public static IHttpClientBuilder AddRemoteApiHttpClient(this IServiceCollection services, string clientName,
@@ -136,7 +137,8 @@ public static IHttpClientBuilder AddRemoteApiHttpClient(this IServiceCollection
/// The name of that to
/// configure. A common use case is to use the same named client in multiple
/// render contexts that are automatically switched between via interactive
- /// render modes.
+ /// render modes. In that case, ensure both the client and server project
+ /// define the HttpClient appropriately.
/// A configuration callback used to set up
/// the .
public static IHttpClientBuilder AddRemoteApiHttpClient(this IServiceCollection services, string clientName,
@@ -146,7 +148,17 @@ public static IHttpClientBuilder AddRemoteApiHttpClient(this IServiceCollection
.AddHttpMessageHandler();
}
- // TODO - Manually test this API.
+ ///
+ /// Adds a typed for use when invoking remote APIs
+ /// proxied through Duende.Bff and configures the client with a callback.
+ ///
+ /// The name of that to
+ /// configure. A common use case is to use the same named client in multiple
+ /// render contexts that are automatically switched between via interactive
+ /// render modes. In that case, ensure both the client and server project
+ /// define the HttpClient appropriately.
+ /// A configuration callback used to set up
+ /// the .
public static IHttpClientBuilder AddRemoteApiHttpClient(this IServiceCollection services,
Action configureClient)
where T : class
@@ -155,6 +167,18 @@ public static IHttpClientBuilder AddRemoteApiHttpClient(this IServiceCollecti
.AddHttpMessageHandler();
}
+ ///
+ /// Adds a typed for use when invoking remote APIs
+ /// proxied through Duende.Bff and configures the client with a callback
+ /// that has access to the underlying service provider.
+ ///
+ /// The name of that to
+ /// configure. A common use case is to use the same named client in multiple
+ /// render contexts that are automatically switched between via interactive
+ /// render modes. In that case, ensure both the client and server project
+ /// define the HttpClient appropriately.
+ /// A configuration callback used to set up
+ /// the .
public static IHttpClientBuilder AddRemoteApiHttpClient(this IServiceCollection services,
Action? configureClient = null)
where T : class