Mercurial > silverbladetech
annotate Stocks/Stocks.Service/AssemblyInit.cs @ 113:954f66bb8dbf
Portable library added for DTO
author | adminsh@apollo |
---|---|
date | Sat, 19 May 2012 16:21:07 +0100 |
parents | 399398841fd0 |
children |
rev | line source |
---|---|
0 | 1 using System.Diagnostics; |
23
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
2 using System.Diagnostics.CodeAnalysis; |
0 | 3 using System.Reflection; |
4 using NLog; | |
5 | |
6 namespace Stocks.Service | |
7 { | |
23
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
8 internal class AssemblyInit |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
9 { |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
10 private static readonly Logger logger = LogManager.GetCurrentClassLogger(); |
0 | 11 |
23
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
12 [SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")] |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
13 public AssemblyInit() |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
14 { |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
15 FileVersionInfo fvi = FileVersionInfo.GetVersionInfo( |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
16 Assembly.GetExecutingAssembly().Location); |
0 | 17 |
23
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
18 logger.Info("Init: {0} {1} ", |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
19 Assembly.GetExecutingAssembly().GetName(), |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
20 fvi.ProductVersion); |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
21 } |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
22 } |
399398841fd0
Working version for Stocks (including loosely coupled components
adminsh@apollo
parents:
6
diff
changeset
|
23 } |