Mercurial > silverbladetech
comparison Stocks/Stocks.Service/AssemblyInit.cs @ 23:399398841fd0
Working version for Stocks (including loosely coupled components
author | adminsh@apollo |
---|---|
date | Tue, 20 Mar 2012 16:53:29 +0000 |
parents | c812bca7b1ac |
children |
comparison
equal
deleted
inserted
replaced
22:a7a4cde39999 | 23:399398841fd0 |
---|---|
1 using System.Diagnostics; | 1 using System.Diagnostics; |
2 using System.Diagnostics.CodeAnalysis; | |
2 using System.Reflection; | 3 using System.Reflection; |
3 using Ninject; | |
4 using NLog; | 4 using NLog; |
5 | 5 |
6 namespace Stocks.Service | 6 namespace Stocks.Service |
7 { | 7 { |
8 internal class AssemblyInit | 8 internal class AssemblyInit |
9 { | 9 { |
10 private static Logger logger = LogManager.GetCurrentClassLogger(); | 10 private static readonly Logger logger = LogManager.GetCurrentClassLogger(); |
11 | 11 |
12 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")] | 12 [SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")] |
13 public AssemblyInit () | 13 public AssemblyInit() |
14 { | 14 { |
15 var fvi = FileVersionInfo.GetVersionInfo( | 15 FileVersionInfo fvi = FileVersionInfo.GetVersionInfo( |
16 Assembly.GetExecutingAssembly().Location); | 16 Assembly.GetExecutingAssembly().Location); |
17 | 17 |
18 logger.Info("Init: {0} {1} ", | 18 logger.Info("Init: {0} {1} ", |
19 Assembly.GetExecutingAssembly().GetName(), | 19 Assembly.GetExecutingAssembly().GetName(), |
20 fvi.ProductVersion); | 20 fvi.ProductVersion); |
21 } | 21 } |
22 } | 22 } |
23 } | 23 } |