-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLUIModule.cs
56 lines (52 loc) · 2 KB
/
LUIModule.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using BExIS.Modules.Lui.UI.Helper;
using System;
using Vaiona.Logging;
using Vaiona.Web.Mvc.Modularity;
namespace BEXIS.Modules.Lui.UI
{
public class LUIModule : ModuleBase
{
public LUIModule(): base("LUI")
{
}
/// <summary>
/// Registers current area with the routing engine.
/// The default route is automatically registred. Using the AreaName as route prefix and url sapce.
/// </summary>
/// <remarks>
/// <list type="number">
/// <item>If you are happy with the defaul route, either leave the method as is or comment it all (prefered).</item>
/// <item>if you want to register other than the default, comment the call to the base method and write your own ones.</item>
/// <item>If you want to register additional routes, write them after the call to the base method.</item>
/// </list>
/// </remarks>
/// <param name="context"></param>
//public override void RegisterArea(AreaRegistrationContext context)
//{
// base.RegisterArea(context);
// //context.MapRoute(
// // AreaName + "_default",
// // AreaName+"/{controller}/{action}/{id}",
// // new { action = "Index", id = UrlParameter.Optional }
// //);
//}
public override void Install()
{
LoggerFactory.GetFileLogger().LogCustom("... start install of LUI ...");
try
{
base.Install();
using (var luiSeedDataGenerator = new LUISeedDataGenerator())
{
luiSeedDataGenerator.GenerateSeedData();
}
}
catch (Exception e)
{
LoggerFactory.GetFileLogger().LogCustom(e.Message);
LoggerFactory.GetFileLogger().LogCustom(e.StackTrace);
}
LoggerFactory.GetFileLogger().LogCustom("... end install of LUI ...");
}
}
}