AddRazor(IServiceCollection, IReadOnlyFileSystem) Method
Adds all services required for the RenderRazor module.
Namespace
Statiq.Razor
Containing Type
IServiceCollectionExtensions

Syntax

public static IServiceCollection AddRazor(this IServiceCollection serviceCollection, IReadOnlyFileSystem fileSystem = null)

Parameters

Name Type Description
serviceCollection IServiceCollection The service collection to register services in.
fileSystem IReadOnlyFileSystem The file system or null if we're expecting one to already be registered.

Return Value

Type Description
IServiceCollection The service collection.