public static IConfigurationBuilder AddJsonTemplateFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange, TemplateConfiguration templateConfiguration = null) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (string.IsNullOrEmpty(path)) { throw new ArgumentException("File path must be a non-empty string.", nameof(path)); } var source = new JsonTemplateConfigurationSource(path, templateConfiguration) { Optional = optional, ReloadOnChange = reloadOnChange }; return(builder.Add(source)); }
public JsonTemplateConfigurationProvider(JsonTemplateConfigurationSource jsonTemplateConfigurationSource) : base(jsonTemplateConfigurationSource) { }