-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEMMModule.cs
More file actions
42 lines (37 loc) · 1.11 KB
/
EMMModule.cs
File metadata and controls
42 lines (37 loc) · 1.11 KB
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
//using BExIS.Modules.Lui.UI.Helper;
using BExIS.Modules.EMM.UI.Helpers;
using System;
using Vaiona.Logging;
using Vaiona.Web.Mvc.Modularity;
namespace BExIS.Modules.EMM.UI
{
public class EMMModule : ModuleBase
{
public EMMModule(): base("EMM")
{
}
public override void Start()
{
base.Start();
LoggerFactory.GetFileLogger().LogCustom("Start EMM");
}
public override void Install()
{
LoggerFactory.GetFileLogger().LogCustom("... start install of EMM ...");
try
{
base.Install();
using (EMMSeedDataGenerator eMMSeedDataGenerator = new EMMSeedDataGenerator())
{
eMMSeedDataGenerator.GenerateSeedData();
}
}
catch (Exception e)
{
LoggerFactory.GetFileLogger().LogCustom(e.Message);
LoggerFactory.GetFileLogger().LogCustom(e.StackTrace);
}
LoggerFactory.GetFileLogger().LogCustom("... end install of EMM ...");
}
}
}