From 5d88dc857513344a4ecd1b337c1529250e5e2dfa Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 29 Jul 2012 11:19:25 -0400 Subject: Configuration and serialization improvements --- MediaBrowser.Common/Kernel/BaseKernel.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'MediaBrowser.Common/Kernel/BaseKernel.cs') diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs index 3ff07356b..291c67156 100644 --- a/MediaBrowser.Common/Kernel/BaseKernel.cs +++ b/MediaBrowser.Common/Kernel/BaseKernel.cs @@ -18,7 +18,7 @@ namespace MediaBrowser.Common.Kernel /// Represents a shared base kernel for both the UI and server apps /// public abstract class BaseKernel - where TConfigurationType : BaseConfiguration, new() + where TConfigurationType : BaseApplicationConfiguration, new() { /// /// Gets the path to the program data folder @@ -139,18 +139,13 @@ namespace MediaBrowser.Common.Kernel plugin.Version = assemblyName.Version; plugin.Path = Path.Combine(PluginsPath, assemblyName.Name); + plugin.Context = KernelContext; + plugin.ReloadConfiguration(); if (plugin.Enabled) { - if (KernelContext == KernelContext.Server) - { - plugin.InitInServer(); - } - else - { - plugin.InitInUI(); - } + plugin.Init(); } } } -- cgit v1.2.3