0
|
1 using System.Diagnostics;
|
|
2 using System.Reflection;
|
|
3 using Ninject;
|
|
4 using NLog;
|
|
5
|
|
6 namespace Stocks.Service
|
|
7 {
|
|
8 internal class AssemblyInit
|
|
9 {
|
|
10 private static Logger logger = LogManager.GetCurrentClassLogger();
|
|
11
|
|
12 public AssemblyInit ()
|
|
13 {
|
|
14 var fvi = FileVersionInfo.GetVersionInfo(
|
|
15 Assembly.GetExecutingAssembly().Location);
|
|
16
|
|
17 logger.Info("Init: {0} {1} ",
|
|
18 Assembly.GetExecutingAssembly().GetName(),
|
|
19 fvi.ProductVersion);
|
|
20
|
|
21 var kernel = new StandardKernel(new IoCModule());
|
|
22 }
|
|
23 }
|
|
24 }
|