Mercurial > silverbladetech
view Stocks/Stocks.Service/AssemblyInit.cs @ 6:c812bca7b1ac
"Restore packages on build" enabled by Nuget 1.6
General refactoring based on code analysis
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 01:00:34 +0700 |
parents | 57f20ba55884 |
children | 399398841fd0 |
line wrap: on
line source
using System.Diagnostics; using System.Reflection; using Ninject; using NLog; namespace Stocks.Service { internal class AssemblyInit { private static Logger logger = LogManager.GetCurrentClassLogger(); [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")] public AssemblyInit () { var fvi = FileVersionInfo.GetVersionInfo( Assembly.GetExecutingAssembly().Location); logger.Info("Init: {0} {1} ", Assembly.GetExecutingAssembly().GetName(), fvi.ProductVersion); } } }