public static Bootstrapper AddDefaultLogging(this Bootstrapper bootstrapper) =>
 bootstrapper.ConfigureServices(services =>
 {
     services.AddSingleton <ILoggerProvider, ConsoleLoggerProvider>();
     services.AddLogging(logging => logging.AddDebug());
 });
 public static Bootstrapper AddEnvironmentVariables(this Bootstrapper bootstrapper) =>
 bootstrapper.BuildConfiguration(builder => builder.AddEnvironmentVariables());
 public static Bootstrapper AddDefaultPipelines(this Bootstrapper bootstrapper) => bootstrapper.AddPipelines();
 public static Bootstrapper AddDefaultsWithout(this Bootstrapper bootstrapper, DefaultFeatures withoutFeatures) =>
 bootstrapper.AddDefaults(DefaultFeatures.All & ~withoutFeatures);
 public static Bootstrapper AddCustomCommands(this Bootstrapper bootstrapper) => bootstrapper.AddCommands();
 public static Bootstrapper AddDefaultConfigurationFiles(this Bootstrapper bootstrapper) =>
 bootstrapper.BuildConfiguration(builder => builder
                                 .SetBasePath(Directory.GetCurrentDirectory())
                                 .AddJsonFile("appsettings.json", true)
                                 .AddJsonFile("statiq.json", true));
 public static Bootstrapper AddShortcode <TShortcode>(this Bootstrapper bootstrapper)
     where TShortcode : IShortcode =>
 bootstrapper.ConfigureEngine(x => x.Shortcodes.Add <TShortcode>());
Ejemplo n.º 8
0
 public static Bootstrapper AddPipelines <TParent>(this Bootstrapper bootstrapper) =>
 bootstrapper.AddPipelines(typeof(TParent));
Ejemplo n.º 9
0
 public static Bootstrapper AddPipeline <TPipeline>(this Bootstrapper bootstrapper)
     where TPipeline : IPipeline =>
 bootstrapper.ConfigureServices(x => x.AddSingleton(typeof(IPipeline), typeof(TPipeline)));