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