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 |