From 4f67fc4aefc11c1a4293227c70de922dbe03c652 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 7 Mar 2013 00:34:00 -0500 Subject: removed base kernel and ikernel --- .../Security/PluginSecurityManager.cs | 23 ++++++---------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'MediaBrowser.Common.Implementations/Security') diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs index d1a4940ef4..0404ee7fe8 100644 --- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs +++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs @@ -3,7 +3,6 @@ using MediaBrowser.Common.Security; using MediaBrowser.Model.Serialization; using Mediabrowser.Model.Entities; using Mediabrowser.PluginSecurity; -using MediaBrowser.Common.Kernel; using MediaBrowser.Common.Net; using System; using System.Threading; @@ -44,29 +43,19 @@ namespace MediaBrowser.Common.Implementations.Security private IHttpClient _httpClient; private IJsonSerializer _jsonSerializer; - - /// - /// The _kernel - /// - private readonly IKernel _kernel; + private IApplicationHost _appHost; /// /// Initializes a new instance of the class. /// - /// The kernel. - public PluginSecurityManager(IKernel kernel, IHttpClient httpClient, IJsonSerializer jsonSerializer, IApplicationPaths appPaths) + public PluginSecurityManager(IApplicationHost appHost, IHttpClient httpClient, IJsonSerializer jsonSerializer, IApplicationPaths appPaths) { - if (kernel == null) - { - throw new ArgumentNullException("kernel"); - } - if (httpClient == null) { throw new ArgumentNullException("httpClient"); } - - _kernel = kernel; + + _appHost = appHost; _httpClient = httpClient; _jsonSerializer = jsonSerializer; MBRegistration.Init(appPaths); @@ -98,7 +87,7 @@ namespace MediaBrowser.Common.Implementations.Security // Clear this so it will re-evaluate ResetSupporterInfo(); // And we'll need to restart to re-evaluate the status of plug-ins - _kernel.NotifyPendingRestart(); + _appHost.NotifyPendingRestart(); } } @@ -115,7 +104,7 @@ namespace MediaBrowser.Common.Implementations.Security { MBRegistration.LegacyKey = value; // And we'll need to restart to re-evaluate the status of plug-ins - _kernel.NotifyPendingRestart(); + _appHost.NotifyPendingRestart(); } } -- cgit v1.2.3