menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ServiceExtensionController - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ServiceExtensionController

    This class includes methods for setting up dependency injection, endpoint registration, and anti-forgery token validation.

    Inheritance
    System.Object
    ServiceExtensionController
    Namespace: Syncfusion.Blazor.SmartComponents
    Assembly: Syncfusion.Blazor.SmartComponents.dll
    Syntax
    public static class ServiceExtensionController : Object

    Methods

    AddSyncfusionSmartComponents(IServiceCollection)

    Registers Syncfusion smart components and their dependencies into the Microsoft.Extensions.DependencyInjection.IServiceCollection. This method sets up required services and components for the smart components to function correctly.

    Declaration
    public static ISmartComponentsBuilder AddSyncfusionSmartComponents(this IServiceCollection services)
    Parameters
    Type Name Description
    Microsoft.Extensions.DependencyInjection.IServiceCollection services
    Returns
    Type
    Syncfusion.Blazor.AI.ISmartComponentsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved