using System; using System.Web; using System.Net; using System.Threading; using System.IO; using System.Configuration; using ASC.Core; using ASC.Core.Tenants; using ASC.Data.Storage; using log4net; using log4net.Config; using TeamLab; public class Global : HttpApplication { public Global() { } void Application_Start(object sender, EventArgs e) { XmlConfigurator.Configure(); DebugInfo.Init(); } void Application_End(object sender, EventArgs e) { } void Application_Error(object sender, EventArgs e) { } public override string GetVaryByCustomString(HttpContext context, string custom) { if (custom == "ResourceBundleControl") { return SecureHelper.IsSecure().ToString(); } return base.GetVaryByCustomString(context, custom); } void Session_Start(object sender, EventArgs e) { } void Session_End(object sender, EventArgs e) { } protected void Application_BeginRequest(object sender, EventArgs e) { System.Threading.Thread.CurrentThread.CurrentCulture = LanguageProvider.GetCurrentCulture(); System.Threading.Thread.CurrentThread.CurrentUICulture = LanguageProvider.GetCurrentCulture(); } }