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