From a5f9dc1bfc6c8d37f915d2ea33e495013bd83ba5 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 20 Feb 2013 23:37:50 -0500 Subject: isolated sqlite dependancy --- MediaBrowser.Common/Kernel/BaseKernel.cs | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'MediaBrowser.Common/Kernel/BaseKernel.cs') diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs index 616a0305c..95e6d05d6 100644 --- a/MediaBrowser.Common/Kernel/BaseKernel.cs +++ b/MediaBrowser.Common/Kernel/BaseKernel.cs @@ -116,7 +116,7 @@ namespace MediaBrowser.Common.Kernel /// The new version. public void OnApplicationUpdated(Version newVersion) { - EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs {Argument = newVersion}); + EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs { Argument = newVersion }); NotifyPendingRestart(); } @@ -258,7 +258,7 @@ namespace MediaBrowser.Common.Kernel /// The rest services. [ImportMany(typeof(IRestfulService))] public IEnumerable RestServices { get; private set; } - + /// /// The _protobuf serializer initialized /// @@ -348,14 +348,20 @@ namespace MediaBrowser.Common.Kernel public Assembly[] Assemblies { get; private set; } /// - /// Initializes the Kernel + /// Initializes a new instance of the class. /// /// The iso manager. - /// Task. - public async Task Init(IIsoManager isoManager) + protected BaseKernel(IIsoManager isoManager) { IsoManager = isoManager; + } + /// + /// Initializes the Kernel + /// + /// Task. + public async Task Init() + { Logger = Logging.LogManager.GetLogger(GetType().Name); ApplicationPaths = new TApplicationPathsType(); @@ -539,10 +545,10 @@ namespace MediaBrowser.Common.Kernel { yield return pluginAssembly; } - + // Include composable parts in the Model assembly - yield return typeof (SystemInfo).Assembly; - + yield return typeof(SystemInfo).Assembly; + // Include composable parts in the Common assembly yield return Assembly.GetExecutingAssembly(); @@ -636,7 +642,7 @@ namespace MediaBrowser.Common.Kernel IsoManager = null; } } - + /// /// Disposes the TCP manager. /// @@ -760,7 +766,7 @@ namespace MediaBrowser.Common.Kernel /// The _save lock /// private readonly object _configurationSaveLock = new object(); - + /// /// Saves the current configuration /// -- cgit v1.2.3