Files
BeWoPlaner/BeWoPlanerMobil/Global.asax.cs
Lyndon Jetten 23b8757ff5 FaC: Neues Scheduling-Modul hinzugefügt, aber noch lange nicht fertig.
ownChat: Neues TimeStamp-Objekt wird unterstützt und der Chat funktioniert wieder.
2024-06-05 14:45:33 +02:00

47 lines
1.5 KiB
C#

using System;
using System.Net;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using DevExpress.Web.Mvc;
using log4net.Config;
namespace BeWoPlanerMobil
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
public class MvcApplication : HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
XmlConfigurator.Configure();
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
//Context.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
// Context.Response.Cache.SetAllowResponseInBrowserHistory(false);
// Context.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
// Context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
// Context.Response.Cache.SetNoStore();
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
}
protected void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
DevExpressHelper.Theme = "Metropolis";
}
}
}