forked from GleamTech/FileUltimate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.asax.cs
25 lines (22 loc) · 872 Bytes
/
Global.asax.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.IO;
using System.Web.Mvc;
using System.Web.Routing;
using GleamTech.AspNet;
using GleamTech.FileUltimate;
namespace GleamTech.FileUltimateExamples.AspNetMvcCS
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RouteConfig.RegisterRoutes(RouteTable.Routes);
var gleamTechConfig = Hosting.ResolvePhysicalPath("~/App_Data/GleamTech.config");
if (File.Exists(gleamTechConfig))
GleamTechConfiguration.Current.Load(gleamTechConfig);
var fileUltimateConfig = Hosting.ResolvePhysicalPath("~/App_Data/FileUltimate.config");
if (File.Exists(fileUltimateConfig))
FileUltimateConfiguration.Current.Load(fileUltimateConfig);
}
}
}