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