Example #1
0
 private static IHostBuilder CreateHostBuilder(CLIOptions options)
 {
     return(new HostBuilder()
            .UseConsoleLifetime()
            .UseContentRoot(Directory.GetCurrentDirectory())
            .ConfigureServices(services =>
     {
         services.AddSingleton(options);
         services.AddHostedService <ABNtoYNABService>();
     }));
 }
Example #2
0
 public ABNtoYNABService(CLIOptions options) => this.options = options;