Ejemplo n.º 1
0
 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());
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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}");
         }
     }
 }