Class SyncfusionBlazor
An extension class controls methods to add the Syncfusion Blazor service to the service collection.
Inheritance
System.Object
SyncfusionBlazor
Namespace: Syncfusion.Blazor
Assembly: Syncfusion.Blazor.dll
Syntax
public static class SyncfusionBlazor : Object
Methods
AddSyncfusionBlazor(IServiceCollection, Action<GlobalOptions>)
Adds Syncfusion Blazor service to the service collection and configure components global options.
Declaration
public static IServiceCollection AddSyncfusionBlazor(this IServiceCollection services, Action<GlobalOptions> configure = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The collection of services. |
System.Action<GlobalOptions> | configure | A delegate that is used to configure GlobalOptions. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The collection of services. |
Examples
services.AddSyncfusionBlazor(options =>
{
options.IgnoreScriptIsolation = true;
});