Exemplo n.º 1
0
 /// <summary>
 /// Entry point method.
 /// </summary>
 private static Task Main(string[] args)
 => CommonHostBuilder
 .WithJsonConfig(args, "marula-host-config")
 .Titled("postgres-marula-host")
 .EnableHttpApi()
 .ConfigureServices(AddComponents)
 .Build()
 .RunAsync();
Exemplo n.º 2
0
 /// <summary>
 /// Entry point method.
 /// </summary>
 private static Task Main(string[] args)
 => CommonHostBuilder
 .WithJsonConfig(args, "marula-control-config")
 .Titled("postgres-marula-ctl")
 .ConfigureLogging(builder =>
 {
     // todo: and in-memory logging
     builder.ClearProviders();
 })
 .ConfigureServices(AddComponents)
 .RunConsoleAsync();