Skip to content

The Free Software Media System - Server Backend & API

Added ApplicationVersion to BaseKernel

LukePulverenti Luke Pulverenti luke pulverenti7e077ed913a2
diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs
index 5b2f97ced3..22ecc33154 100644
--- a/MediaBrowser.Common/Kernel/BaseKernel.cs
+++ b/MediaBrowser.Common/Kernel/BaseKernel.cs
@@ -252,5 +252,16 @@ namespace MediaBrowser.Common.Kernel
Logger.LoggerInstance.Dispose();
}
}
+
+ /// <summary>
+ /// Gets the current application version
+ /// </summary>
+ public Version ApplicationVersion
+ {
+ get
+ {
+ return GetType().Assembly.GetName().Version;
+ }
+ }
}
}