alexa
menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved