public static IContentBuilder AddClassGenerator(this IContentBuilder builder, Action <ClassGeneratorOptions> options) { if (options is null) { throw new ArgumentNullException(nameof(options)); } var ourBuilder = (LocalizerConfiguration)builder; var o = new ClassGeneratorOptions(); options(o); ourBuilder.ClassGenerator = new StaticContentClassGenerator(o); return(builder); }
public StaticContentClassGenerator(ClassGeneratorOptions options) { _options = options; }