Interface ISmartComponentsBuilder
This interface supports dependency injection for AI inference, API credentials, and security settings.
Namespace: Syncfusion.EJ2.AI
Assembly: Syncfusion.EJ2.dll
Syntax
public interface ISmartComponentsBuilder
Methods
InjectAntiforgeryValidation()
Configures anti-forgery token validation for CSRF protection. This method enables anti-forgery token validation in the smart components.
Declaration
ISmartComponentsBuilder InjectAntiforgeryValidation()
Returns
| Type |
|---|
| ISmartComponentsBuilder |
InjectOpenAIInference()
Registers the OpenAI inference service with the DI container. This method is used to inject the OpenAI inference which is responsible for interacting with AI clients.
Declaration
ISmartComponentsBuilder InjectOpenAIInference()
Returns
| Type |
|---|
| ISmartComponentsBuilder |