2016-08-29 13:51:20 +00:00
|
|
|
|
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();
|
2021-06-04 12:57:43 +00:00
|
|
|
|
DebugInfo.Init();
|
2016-08-29 13:51:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
{
|
2022-03-02 13:06:34 +00:00
|
|
|
|
System.Threading.Thread.CurrentThread.CurrentCulture = LanguageProvider.GetCurrentCulture();
|
|
|
|
|
System.Threading.Thread.CurrentThread.CurrentUICulture = LanguageProvider.GetCurrentCulture();
|
2016-08-29 13:51:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|