public SpaProxyLaunchManager( ILogger <SpaProxyLaunchManager> logger, IOptions <SpaDevelopmentServerOptions> options) { _options = options.Value; _logger = logger; }
public SpaProxyLaunchManager( ILogger <SpaProxyLaunchManager> logger, IHostApplicationLifetime appLifetime, IOptions <SpaDevelopmentServerOptions> options) { _options = options.Value; _logger = logger; appLifetime.ApplicationStopping.Register(() => Dispose(true)); }
public SpaProxyLaunchManager(ILogger <SpaProxyLaunchManager> logger) { _options = new SpaDevelopmentServerOptions(); var configuration = new ConfigurationBuilder() .AddJsonFile(Path.Combine(AppContext.BaseDirectory, "spa.proxy.json")) .Build(); configuration.GetSection("SpaProxyServer").Bind(_options); _logger = logger; }