Class
ServiceCollectionExtensions

Class that contains the Telerik service extensions.

Definition

Namespace:Microsoft.Extensions.DependencyInjection

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public static class ServiceCollectionExtensions

Inheritance: objectServiceCollectionExtensions

Methods

AddTelerikBlazor(IServiceCollection)

Registers the Telerik Blazor services. You must call it in the ConfigureServices method of the Startup class of your project.

Declaration

cs-api-definition
public static IServiceCollection AddTelerikBlazor(this IServiceCollection services)

Parameters

services

IServiceCollection

The IServiceCollection argument the ConfigureServices method receives.

Returns

IServiceCollection

The updated IServiceCollection collection argument the ConfigureServices method receives.