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