comparison Stocks/Stocks.Service/AssemblyInit.cs @ 0:e5d46bb6cdb0

Initial commit
author adminSH stevenhollidge@hotmail.com
date Mon, 20 Feb 2012 13:52:35 +0700
parents
children 57f20ba55884
comparison
equal deleted inserted replaced
-1:000000000000 0:e5d46bb6cdb0
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 }