diff Stocks/Stocks.Service/AssemblyInit.cs @ 0:e5d46bb6cdb0

Initial commit
author adminSH stevenhollidge@hotmail.com
date Mon, 20 Feb 2012 13:52:35 +0700
parents
children 57f20ba55884
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Stocks/Stocks.Service/AssemblyInit.cs	Mon Feb 20 13:52:35 2012 +0700
@@ -0,0 +1,24 @@
+using System.Diagnostics;
+using System.Reflection;
+using Ninject;
+using NLog;
+
+namespace Stocks.Service
+{
+	internal class AssemblyInit
+	{
+		private static Logger logger = LogManager.GetCurrentClassLogger();
+
+		public AssemblyInit ()
+		{	
+			var fvi = FileVersionInfo.GetVersionInfo(
+				Assembly.GetExecutingAssembly().Location);
+
+			logger.Info("Init: {0} {1} ",
+				Assembly.GetExecutingAssembly().GetName(),
+				fvi.ProductVersion);
+
+			var kernel = new StandardKernel(new IoCModule());
+		}
+	}
+}