/// <summary> /// Gets the direct config. /// </summary> /// <returns></returns> protected DextopConfig GetDirectConfig() { if (DextopApplication == null) { throw new DextopSessionNotInitializedException(); } var urlFormat = DextopUtil.AbsolutePath(String.Format("{{0}}.ashx?sid={0}", SessionId)); if (!String.IsNullOrEmpty(DextopApplication.AppKey)) { urlFormat += "&app=" + DextopApplication.AppKey; } var res = new DextopConfig(); res["remotingUrl"] = String.Format(urlFormat, "rpc"); if (UseLongPolling) { res["longPollingUrl"] = String.Format(urlFormat, "lpoll"); } else if (UsePolling) { res["pollingUrl"] = String.Format(urlFormat, "poll"); res["pollingInterval"] = PollingInterval; } return(res); }
/// <summary> /// Gets the CSS files registered in all modules. /// </summary> /// <param name="culture">The culture.</param> /// <returns></returns> public string[] GetCssFiles(CultureInfo culture) { var lang = MapCultureToLanguageCode(culture); return(Modules.SelectMany(a => a.GetCssFiles(lang).Select(b => DextopUtil.AbsolutePath(b))).ToArray()); }