annotate MetroWpf/Stocks.Service/AssemblyInit.cs @ 57:558c09d76726

Web host added
author Steven Hollidge <stevenhollidge@hotmail.com>
date Thu, 19 Apr 2012 14:39:59 +0100
parents 6109bc268b90
children
rev   line source
20
adminsh@apollo
parents:
diff changeset
1 using System.Diagnostics;
adminsh@apollo
parents:
diff changeset
2 using System.Diagnostics.CodeAnalysis;
adminsh@apollo
parents:
diff changeset
3 using System.Reflection;
adminsh@apollo
parents:
diff changeset
4 using NLog;
adminsh@apollo
parents:
diff changeset
5
adminsh@apollo
parents:
diff changeset
6 namespace Stocks.Service
adminsh@apollo
parents:
diff changeset
7 {
adminsh@apollo
parents:
diff changeset
8 internal class AssemblyInit
adminsh@apollo
parents:
diff changeset
9 {
adminsh@apollo
parents:
diff changeset
10 private static readonly Logger logger = LogManager.GetCurrentClassLogger();
adminsh@apollo
parents:
diff changeset
11
adminsh@apollo
parents:
diff changeset
12 [SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")]
adminsh@apollo
parents:
diff changeset
13 public AssemblyInit()
adminsh@apollo
parents:
diff changeset
14 {
adminsh@apollo
parents:
diff changeset
15 FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(
adminsh@apollo
parents:
diff changeset
16 Assembly.GetExecutingAssembly().Location);
adminsh@apollo
parents:
diff changeset
17
adminsh@apollo
parents:
diff changeset
18 logger.Info("Init: {0} {1} ",
adminsh@apollo
parents:
diff changeset
19 Assembly.GetExecutingAssembly().GetName(),
adminsh@apollo
parents:
diff changeset
20 fvi.ProductVersion);
adminsh@apollo
parents:
diff changeset
21 }
adminsh@apollo
parents:
diff changeset
22 }
adminsh@apollo
parents:
diff changeset
23 }