Mercurial > silverbladetech
annotate 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 |
rev | line source |
---|---|
0 | 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 | |
6
c812bca7b1ac
"Restore packages on build" enabled by Nuget 1.6
stevenh7776 stevenhollidge@hotmail.com
parents:
4
diff
changeset
|
12 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")] |
c812bca7b1ac
"Restore packages on build" enabled by Nuget 1.6
stevenh7776 stevenhollidge@hotmail.com
parents:
4
diff
changeset
|
13 public AssemblyInit () |
0 | 14 { |
15 var fvi = FileVersionInfo.GetVersionInfo( | |
16 Assembly.GetExecutingAssembly().Location); | |
17 | |
18 logger.Info("Init: {0} {1} ", | |
19 Assembly.GetExecutingAssembly().GetName(), | |
20 fvi.ProductVersion); | |
21 } | |
22 } | |
23 } |