annotate Stocks/Stocks.Service/AssemblyInit.cs @ 52:6235c5f0d9db

Original styles
author Steven Hollidge <stevenhollidge@hotmail.com>
date Thu, 19 Apr 2012 11:45:38 +0100
parents 399398841fd0
children
rev   line source
0
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
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
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
3 using System.Reflection;
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
4 using NLog;
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
5
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
6 namespace Stocks.Service
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
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
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
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
e5d46bb6cdb0 Initial commit
adminSH stevenhollidge@hotmail.com
parents:
diff changeset
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 }