Class ServiceClientManager
Definition
- Assembly:
- Tizen.AIAvatar.dll
Manages REST clients for different endpoints based on the AI service configuration.
public class ServiceClientManager : IDisposable
- Inheritance
-
objectServiceClientManager
Constructors
View SourceServiceClientManager(AIServiceConfiguration)
Initializes a new instance of the ServiceClientManager class.
Declaration
public ServiceClientManager(AIServiceConfiguration config)
Parameters
| Type | Name | Description |
|---|---|---|
| AIServiceConfiguration | config | The AI service configuration. |
Methods
View SourceDispose()
Releases all resources used by the ServiceClientManager.
Declaration
public void Dispose()
GetClient(string)
Retrieves or creates a REST client for the specified endpoint.
Declaration
public IRestClient GetClient(string endpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| string | endpoint | The base URI of the endpoint. |
Returns
| Type | Description |
|---|---|
| IRestClient | The REST client for the specified endpoint. |