Mercurial > silverbladetech
diff MetroWpf/Stocks.Service/AssemblyInit.cs @ 20:6109bc268b90
Latest
author | adminsh@apollo |
---|---|
date | Tue, 20 Mar 2012 13:37:46 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MetroWpf/Stocks.Service/AssemblyInit.cs Tue Mar 20 13:37:46 2012 +0000 @@ -0,0 +1,23 @@ +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using NLog; + +namespace Stocks.Service +{ + internal class AssemblyInit + { + private static readonly Logger logger = LogManager.GetCurrentClassLogger(); + + [SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")] + public AssemblyInit() + { + FileVersionInfo fvi = FileVersionInfo.GetVersionInfo( + Assembly.GetExecutingAssembly().Location); + + logger.Info("Init: {0} {1} ", + Assembly.GetExecutingAssembly().GetName(), + fvi.ProductVersion); + } + } +} \ No newline at end of file