ServiceCollectionExtensions.AddJsonTexts method
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Net.Services
Adds json texts from file provider and sub path
public static ILocalTextRegistry AddJsonTexts(this ILocalTextRegistry registry,
IFileProvider provider, string subpath, bool recursive = true)
parameter | description |
---|---|
registry | The text registry |
provider | File provider |
subpath | Sub path |
recursive | True to recursively scan (default true) |
Return Value
The text registry
Exceptions
exception | condition |
---|---|
ArgumentNullException | registry, provider or sub path is null |
See Also
- interface ILocalTextRegistry
- class ServiceCollectionExtensions