Interface ISmartComponentsBuilder
This interface supports dependency injection for AI inference, API credentials, and security settings.
Namespace: Syncfusion.Blazor.SmartComponents
Assembly: Syncfusion.Blazor.SmartComponents.dll
Syntax
public interface ISmartComponentsBuilder
Methods
ConfigureCredentials(AIServiceCredentials)
Configures API credentials for the smart components. This method allows specifying credentials required for API access.
Declaration
ISmartComponentsBuilder ConfigureCredentials(AIServiceCredentials config)
Parameters
Type | Name | Description |
---|---|---|
AIServiceCredentials | config | An instance of AIServiceCredentials containing API credentials and settings. |
Returns
InjectAntiforgeryValidation()
Configures anti-forgery token validation for CSRF protection. This method enables anti-forgery token validation in the smart components.
Declaration
ISmartComponentsBuilder InjectAntiforgeryValidation()
Returns
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()