Class RoutingServiceCollectionExtensions

Extends Microsoft.Extensions.DependencyInjection.IServiceCollection with extension methods to add dependencies for content routing

Inheritance
System.Object
RoutingServiceCollectionExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Cms.AspNetCore.Routing.dll
Version: 12.0.3
Syntax
public static class RoutingServiceCollectionExtensions : Object

Methods

AddEndpointRoutingExtension<T>(IServiceCollection)

Adds an endpoint routing extension to the container.

Declaration
public static IServiceCollection AddEndpointRoutingExtension<T>(this IServiceCollection services)
    where T : IEndpointRoutingExtension
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services

The Microsoft.Extensions.DependencyInjection.IServiceCollection

Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection

Type Parameters
Name Description
T

The type of IEndpointRoutingExtension