internal static void Initialize(MvcApplication mvcApplication) { AppSettingsReader reader = new AppSettingsReader(); DashboardSettings settings = new DashboardSettings(); settings.SiteTitle = (string)reader.GetValue("SiteTitle", typeof(string)); settings.MonoscapeAccessKey = (string)reader.GetValue("MonoscapeAccessKey", typeof(string)); settings.MonoscapeSecretKey = (string)reader.GetValue("MonoscapeSecretKey", typeof(string)); settings.ApplicationGridEndPointURL = (string)reader.GetValue("ApplicationGridEndPointURL", typeof(string)); settings.FileServerEndPointURL = (string)reader.GetValue("FileServerEndPointURL", typeof(string)); settings.LoadBalancerEndPointURL = (string)reader.GetValue("LoadBalancerEndPointURL", typeof(string)); settings.CloudControllerEndPointURL = (string)reader.GetValue("CloudControllerEndPointURL", typeof(string)); settings.ApFileTransferSocketPort = (int)reader.GetValue("ApFileTransferSocketPort", typeof(int)); Settings.Initialize(settings); }
public static void Initialize(DashboardSettings settings) { SiteTitle = settings.SiteTitle; MonoscapeAccessKey = settings.MonoscapeAccessKey; MonoscapeSecretKey = settings.MonoscapeSecretKey; ApplicationGridEndPointURL = settings.ApplicationGridEndPointURL; LoadBalancerEndPointURL = settings.LoadBalancerEndPointURL; FileServerEndPointURL = settings.FileServerEndPointURL; CloudControllerEndPointURL = settings.CloudControllerEndPointURL; ApFileTransferSocketPort = settings.ApFileTransferSocketPort; }