Class ServiceCollectionExtensions
Extension methods for registering JD.AI Gateway client services.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddGatewayClient(IServiceCollection, string)
Adds the Gateway HTTP client and SignalR client to the service collection.
public static IServiceCollection AddGatewayClient(this IServiceCollection services, string gatewayUrl)
Parameters
servicesIServiceCollectionThe service collection.
gatewayUrlstringBase URL of the Gateway (e.g., "http://localhost:5100").
Returns
- IServiceCollection
The service collection for chaining.