Table of Contents

Class ServiceCollectionExtensions

Namespace
JD.AI.Gateway.Client
Assembly
JD.AI.Gateway.Client.dll

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

services IServiceCollection

The service collection.

gatewayUrl string

Base URL of the Gateway (e.g., "http://localhost:5100").

Returns

IServiceCollection

The service collection for chaining.