private static void LoadAppProxies() { Logger.Info("Loading Application Proxies"); // Load Applicaton Proxies foreach (var app in ProxyConfig.Current.Applications) { Logger.Debug("Starting Proxy for " + app); var appProxy = ApplicationProxy.Create(BackendProvider.Current, new StasisEndpoint(ProxyConfig.Current.AriHostname, ProxyConfig.Current.AriPort, ProxyConfig.Current.AriUsername, ProxyConfig.Current.AriPassword), app.Trim()); } }
private void LoadAppProxies(Microsoft.Extensions.Logging.ILogger log) { log.LogInformation("Loading Application Proxies"); // Load Applicaton Proxies foreach (var app in ProxyConfig.Current.Applications) { log.LogDebug("Starting Proxy for " + app); var appProxy = ApplicationProxy.Create(BackendProvider.Current, new StasisEndpoint(ProxyConfig.Current.AriHostname, ProxyConfig.Current.AriPort, ProxyConfig.Current.AriUsername, ProxyConfig.Current.AriPassword), app.Trim(), log); } }
private static void LoadAppProxies() { Logger.Info("Loading Application Proxies"); // Load Applicaton Proxies foreach (var app in ProxyConfig.Current.Applications) { Logger.Debug("Starting Proxy for " + app); try { var appProxy = ApplicationProxy.Create(BackendProvider.Current, new StasisEndpoint(ProxyConfig.Current.AriHostname, ProxyConfig.Current.AriPort, ProxyConfig.Current.AriUsername, ProxyConfig.Current.AriPassword), app.Trim()); }catch (Exception ex) { Logger.Fatal(ex, $"AppProxy failed. {ex.Message}"); } } }